mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 16:24:04 +02:00
[ALSA] Fix playback and capture on ALSA.
This commit is contained in:
@@ -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)
|
static mal_bool32 mal_device_write__alsa(mal_device* pDevice)
|
||||||
{
|
{
|
||||||
mal_assert(pDevice != NULL);
|
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;
|
return MAL_FALSE;
|
||||||
}
|
}
|
||||||
if (pDevice->alsa.breakFromMainLoop) {
|
if (pDevice->alsa.breakFromMainLoop) {
|
||||||
|
|||||||
Reference in New Issue
Block a user