Commit 3180cadb authored by David Reid's avatar David Reid

Fix ALSA build.

parent bf093f22
...@@ -2143,11 +2143,11 @@ static mal_bool32 mal_device_read__alsa(mal_device* pDevice) ...@@ -2143,11 +2143,11 @@ static mal_bool32 mal_device_read__alsa(mal_device* pDevice)
} }
} }
framesToSend = framesRead * pDevice->channels; framesToSend = framesRead;
pBuffer = pDevice->alsa.pIntermediaryBuffer; pBuffer = pDevice->alsa.pIntermediaryBuffer;
} }
if (samplesToSend > 0) { if (framesToSend > 0) {
mal_device__send_frames_to_client(pDevice, framesToSend, pBuffer); mal_device__send_frames_to_client(pDevice, framesToSend, pBuffer);
} }
......
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