From 80603cf6f13960a771889f59634b312f8d389381 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 23 Oct 2008 16:57:58 +0200 Subject: audio: allow 24 and 8 bit output I added 24 bit support a while ago, but it wasn't possible to force 24 bit output. Add 24 and 8 bit to the list of allowed sample sizes. Although 8 bit audio isn't as widely used as 24 bit, there is no reason to exclude it. --- src/audio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/audio.c') 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; -- cgit v1.2.3