From 9589a62f0cc7360434af889ccf3e909253940139 Mon Sep 17 00:00:00 2001 From: David Reid Date: Thu, 20 Jan 2022 17:20:26 +1000 Subject: [PATCH] Fix example. --- examples/custom_decoder.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/custom_decoder.c b/examples/custom_decoder.c index 3eb30d74..b8384989 100644 --- a/examples/custom_decoder.c +++ b/examples/custom_decoder.c @@ -184,7 +184,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin return; } - ma_data_source_read_pcm_frames(pDataSource, pOutput, frameCount, NULL, MA_TRUE); + ma_data_source_read_pcm_frames(pDataSource, pOutput, frameCount, NULL); (void)pInput; } @@ -229,6 +229,8 @@ int main(int argc, char** argv) return -1; } + ma_data_source_set_looping(&decoder, MA_TRUE); + /* Initialize the device. */ result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0);