mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Fix missing ma_resampler_init argument in docs
ma_resampler_init has three parameters, not two. Add the missing pAllocationCallbacks argument in the example code.
This commit is contained in:
+1
-1
@@ -2899,7 +2899,7 @@ like the following:
|
||||
ma_resample_algorithm_linear);
|
||||
|
||||
ma_resampler resampler;
|
||||
ma_result result = ma_resampler_init(&config, &resampler);
|
||||
ma_result result = ma_resampler_init(&config, NULL, &resampler);
|
||||
if (result != MA_SUCCESS) {
|
||||
// An error occurred...
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user