From e895f4add2711df4b217af1b48583ced4636b518 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 28 Oct 2017 16:35:38 +1000 Subject: [PATCH] [ALSA] Fix playback and capture on ALSA. --- mini_al.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mini_al.h b/mini_al.h index dcd345d0..0ac64ab4 100644 --- a/mini_al.h +++ b/mini_al.h @@ -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) {