Commit 82ae0138 authored by francois@recisio.com's avatar francois@recisio.com Committed by David Reid

Improve fix, handle all outputs

parent 8d5bf821
...@@ -40115,8 +40115,8 @@ static EM_BOOL ma_audio_worklet_process_callback__webaudio(int inputCount, const ...@@ -40115,8 +40115,8 @@ static EM_BOOL ma_audio_worklet_process_callback__webaudio(int inputCount, const
if (ma_device_get_state(pDevice) != ma_device_state_started) { if (ma_device_get_state(pDevice) != ma_device_state_started) {
/* Fill the output buffer with zero to avoid a noise sound */ /* Fill the output buffer with zero to avoid a noise sound */
if (outputCount > 0) { for (int i = 0; i < outputCount; i += 1) {
MA_ZERO_MEMORY(pOutputs[0].data, frameCount * pDevice->playback.internalChannels * sizeof(float)); MA_ZERO_MEMORY(pOutputs[i].data, pOutputs[i].numberOfChannels * pOutputs[i].samplesPerChannel * sizeof(float));
} }
return EM_TRUE; 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