mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +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_resample_algorithm_linear);
|
||||||
|
|
||||||
ma_resampler resampler;
|
ma_resampler resampler;
|
||||||
ma_result result = ma_resampler_init(&config, &resampler);
|
ma_result result = ma_resampler_init(&config, NULL, &resampler);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
// An error occurred...
|
// An error occurred...
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user