ao_sndio: drop AF_FORMAT_S24 usage

I can't test it, so I'm dropping it without replacement. If anyone is
interested in readding support, it would be done like the ao_alsa.c
change.
This commit is contained in:
wm4 2017-07-07 17:42:44 +02:00
parent 4e11549593
commit adbb429296
1 changed files with 0 additions and 3 deletions

View File

@ -116,7 +116,6 @@ static int init(struct ao *ao)
static const struct af_to_par af_to_par[] = {
{AF_FORMAT_U8, 8, 0},
{AF_FORMAT_S16, 16, 1},
{AF_FORMAT_S24, 24, 1},
{AF_FORMAT_S32, 32, 1},
};
const struct af_to_par *ap;
@ -177,8 +176,6 @@ static int init(struct ao *ao)
ao->format = AF_FORMAT_U8;
} else if (p->par.bits == 16 && p->par.bps == 2 && p->par.sig) {
ao->format = AF_FORMAT_S16;
} else if ((p->par.bits == 24 || p->par.msb) && p->par.bps == 3 && p->par.sig) {
ao->format = AF_FORMAT_S24;
} else if ((p->par.bits == 32 || p->par.msb) && p->par.bps == 4 && p->par.sig) {
ao->format = AF_FORMAT_S32;
} else {