Commit 80603cf6 authored by Max Kellermann's avatar Max Kellermann

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.
parent 980f2ca5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment