From adbb42929693074f67986a1f7cf12ab0a654f030 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 7 Jul 2017 17:42:44 +0200 Subject: 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. --- audio/out/ao_sndio.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'audio') diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index 20490fe0a3..0fa239a945 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -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 { -- cgit v1.2.3