diff --git a/libs/snd/src/device_pal_linux_alsa.c b/libs/snd/src/device_pal_linux_alsa.c index fb6471e72..a8f36615d 100644 --- a/libs/snd/src/device_pal_linux_alsa.c +++ b/libs/snd/src/device_pal_linux_alsa.c @@ -471,11 +471,11 @@ bool snd_device_begin(SndDevice* dev) { } } - // Query the device-status to check if there's a period ready for rendering. if (UNLIKELY(dev->state == SndDeviceState_Error)) { return false; // Device is in an unrecoverable error state. } + // Query the device-status to check if there's a period ready for rendering. const AlsaPcmStatus status = alsa_pcm_query(dev); switch (status.error) { case AlsaPcmError_None: