Fix example.

This commit is contained in:
David Reid
2022-01-20 17:20:26 +10:00
parent 252de0f0ad
commit 9589a62f0c
+3 -1
View File
@@ -184,7 +184,7 @@ void data_callback(ma_device* pDevice, void* pOutput, const void* pInput, ma_uin
return; 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; (void)pInput;
} }
@@ -229,6 +229,8 @@ int main(int argc, char** argv)
return -1; return -1;
} }
ma_data_source_set_looping(&decoder, MA_TRUE);
/* Initialize the device. */ /* Initialize the device. */
result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0); result = ma_data_source_get_data_format(&decoder, &format, &channels, &sampleRate, NULL, 0);