aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/audio.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audio.c b/src/audio.c
index 7d8e49f77..ce8b06151 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -149,10 +149,8 @@ int parseAudioConfig(struct audio_format *audioFormat, char *conf)
return -1;
}
- switch (audioFormat->bits) {
- case 16:
- break;
- default:
+ if (audioFormat->bits != 16 && audioFormat->bits != 24 &&
+ audioFormat->bits != 8) {
ERROR("bits %u can not be used for audio output\n",
audioFormat->bits);
return -1;