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.
This commit is contained in:
Max Kellermann
2008-10-23 16:57:58 +02:00
parent 980f2ca56d
commit 80603cf6f1

View File

@@ -149,10 +149,8 @@ int parseAudioConfig(struct audio_format *audioFormat, char *conf)
return -1; return -1;
} }
switch (audioFormat->bits) { if (audioFormat->bits != 16 && audioFormat->bits != 24 &&
case 16: audioFormat->bits != 8) {
break;
default:
ERROR("bits %u can not be used for audio output\n", ERROR("bits %u can not be used for audio output\n",
audioFormat->bits); audioFormat->bits);
return -1; return -1;