Skip to content

Commit 7882e60

Browse files
committed
Don't log an error for disconnected audio devices
1 parent e4e29b8 commit 7882e60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/audio/alsa/SDL_alsa_audio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ static bool ALSA_WaitDevice(SDL_AudioDevice *device)
357357

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

0 commit comments

Comments
 (0)