mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
ALSA: Fix an error with non-blocking mode.
This commit is contained in:
@@ -30317,6 +30317,11 @@ static ma_result ma_device_wait__alsa(ma_device* pDevice, ma_context_state_alsa*
|
|||||||
*pIsDataAvailable = MA_TRUE;
|
*pIsDataAvailable = MA_TRUE;
|
||||||
break; /* We're done. Data available for reading or writing. */
|
break; /* We're done. Data available for reading or writing. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* In non-blocking mode we don't want to keep looping while we wait for data. */
|
||||||
|
if (timeout == 0) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return MA_SUCCESS;
|
return MA_SUCCESS;
|
||||||
|
|||||||
Reference in New Issue
Block a user