Commit e895f4ad authored by David Reid's avatar David Reid

[ALSA] Fix playback and capture on ALSA.

parent cd63a625
......@@ -4644,7 +4644,7 @@ static mal_uint32 mal_device__wait_for_frames__alsa(mal_device* pDevice)
static mal_bool32 mal_device_write__alsa(mal_device* pDevice)
{
mal_assert(pDevice != NULL);
if (!mal_device_is_started(pDevice)) {
if (!mal_device_is_started(pDevice) && mal_device__get_state(pDevice) != MAL_STATE_STARTING) {
return MAL_FALSE;
}
if (pDevice->alsa.breakFromMainLoop) {
......
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