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:
parent
980f2ca56d
commit
80603cf6f1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue