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
1 changed files with 2 additions and 4 deletions

View File

@ -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;