summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-07-07 17:42:44 +0200
committerwm4 <wm4@nowhere>2017-07-07 17:56:18 +0200
commitadbb42929693074f67986a1f7cf12ab0a654f030 (patch)
tree8ef3dfba5e8653e6ec4586657979b0f7700aa100
parent4e11549593f96d876f809b4916f3a7edb7e390b5 (diff)
downloadmpv-adbb42929693074f67986a1f7cf12ab0a654f030.tar.bz2
mpv-adbb42929693074f67986a1f7cf12ab0a654f030.tar.xz
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.
-rw-r--r--audio/out/ao_sndio.c3
1 files changed, 0 insertions, 3 deletions
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 {