mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Fix build for emscripten before 3.1.70
This commit is contained in:
committed by
David Reid
parent
82ae0138f3
commit
1a7a9a7ed2
+1
-1
@@ -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) {
|
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 */
|
||||||
for (int i = 0; i < outputCount; i += 1) {
|
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;
|
return EM_TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user