We don't need to wait a full 10 ms, just delay a bit

This commit is contained in:
Sam Lantinga
2023-09-30 12:14:09 -07:00
parent 6a152676bb
commit 8923305f34

View File

@@ -387,7 +387,7 @@ static Uint8 *ALSA_GetDeviceBuf(SDL_AudioDevice *device, int *buffer_size)
snd_pcm_sframes_t rc = ALSA_snd_pcm_avail(device->hidden->pcm_handle);
if (rc <= 0) {
// Wait a bit and try again, maybe the hardware isn't quite ready yet?
SDL_Delay(10);
SDL_Delay(1);
rc = ALSA_snd_pcm_avail(device->hidden->pcm_handle);
if (rc <= 0) {