瀏覽代碼

Don't log an error for disconnected audio devices

Sam Lantinga 2 月之前
父節點
當前提交
7882e60f0e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/audio/alsa/SDL_alsa_audio.c

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

@@ -357,8 +357,8 @@ static bool ALSA_WaitDevice(SDL_AudioDevice *device)
 
     while (!SDL_GetAtomicInt(&device->shutdown) && (ALSA_snd_pcm_avail(device->hidden->pcm) < sample_frames)) {
         if (total_delays >= (fulldelay * 5)) {
-            // Hmm, not much we can do - abort
-            SDL_LogError(SDL_LOG_CATEGORY_AUDIO, "ALSA: hardware seems to have frozen, giving up on it.");
+            // Hmm, not much we can do - probably disconnected, abort
+            //SDL_LogError(SDL_LOG_CATEGORY_AUDIO, "ALSA: hardware seems to have frozen, giving up on it.");
             return false;
         } else {
             SDL_Delay(delay);