Commit 1a7a9a7e authored by francois@recisio.com's avatar francois@recisio.com Committed by David Reid

Fix build for emscripten before 3.1.70

parent 82ae0138
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment