Browse Source

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

Sam Lantinga 1 year ago
parent
commit
8923305f34
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/audio/alsa/SDL_alsa_audio.c

+ 1 - 1
src/audio/alsa/SDL_alsa_audio.c

@@ -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) {