We don't need to wait a full 10 ms, just delay a bit
This commit is contained in:
1 parent
6a152676bb
commit
8923305f34
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user