Fix build for emscripten before 3.1.70

This commit is contained in:
francois@recisio.com
2024-11-14 16:29:27 +01:00
committed by David Reid
parent 82ae0138f3
commit 1a7a9a7ed2
+1 -1
View File
@@ -40116,7 +40116,7 @@ static EM_BOOL ma_audio_worklet_process_callback__webaudio(int inputCount, const
if (ma_device_get_state(pDevice) != ma_device_state_started) {
/* Fill the output buffer with zero to avoid a noise sound */
for (int i = 0; i < outputCount; i += 1) {
MA_ZERO_MEMORY(pOutputs[i].data, pOutputs[i].numberOfChannels * pOutputs[i].samplesPerChannel * sizeof(float));
MA_ZERO_MEMORY(pOutputs[i].data, pOutputs[i].numberOfChannels * /*pOutputs[i].samplesPerChannel*/frameCount * sizeof(float));
}
return EM_TRUE;
}