Fix a compilation error with the C++ build.

This commit is contained in:
David Reid
2023-06-05 15:19:28 +10:00
parent 1177997599
commit db8e77cad4
+1 -1
View File
@@ -74518,7 +74518,7 @@ MA_API ma_result ma_engine_read_pcm_frames(ma_engine* pEngine, void* pFramesOut,
} }
if (pEngine->onProcess) { if (pEngine->onProcess) {
pEngine->onProcess(pEngine->pProcessUserData, pFramesOut, framesRead); pEngine->onProcess(pEngine->pProcessUserData, (float*)pFramesOut, framesRead); /* Safe cast to float* because the engine always works on floating point samples. */
} }
return MA_SUCCESS; return MA_SUCCESS;