Skip to content

Commit

Permalink
snd: Cleanup comment
Browse files Browse the repository at this point in the history
  • Loading branch information
BastianBlokland committed Sep 19, 2024
1 parent 82e4ac0 commit 3240f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/snd/src/device_pal_linux_alsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3240f7b

Please sign in to comment.