mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Fix an out of date example.
This commit is contained in:
+1
-1
@@ -770,7 +770,7 @@ you could plug in a decoder like so:
|
|||||||
ma_uint64 framesRead;
|
ma_uint64 framesRead;
|
||||||
ma_decoder decoder; // <-- This would be initialized with `ma_decoder_init_*()`.
|
ma_decoder decoder; // <-- This would be initialized with `ma_decoder_init_*()`.
|
||||||
|
|
||||||
result = ma_data_source_read_pcm_frames(&decoder, pFramesOut, frameCount, &framesRead, loop);
|
result = ma_data_source_read_pcm_frames(&decoder, pFramesOut, frameCount, &framesRead);
|
||||||
if (result != MA_SUCCESS) {
|
if (result != MA_SUCCESS) {
|
||||||
return result; // Failed to read data from the decoder.
|
return result; // Failed to read data from the decoder.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user