diff --git a/tests/mal_test_0.c b/tests/mal_test_0.c index c36b7d67..052d76b0 100644 --- a/tests/mal_test_0.c +++ b/tests/mal_test_0.c @@ -2239,7 +2239,7 @@ void on_send__playback_test(mal_device* pDevice, void* pOutput, const void* pInp mal_assert(pData != NULL); #if !defined(__EMSCRIPTEN__) - mal_uint64 framesRead = mal_decoder_read_pcm_frames(pData->pDecoder, frameCount, pOutput); + mal_uint64 framesRead = mal_decoder_read_pcm_frames(pData->pDecoder, pOutput, frameCount); if (framesRead == 0) { mal_event_signal(&pData->endOfPlaybackEvent); }