mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix ALSA build.
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user