Mercurial > mplayer.hg
changeset 36852:145057e3f0ed
ao_sndio: simplify, don't care about 8-bit endianness.
author | reimar |
---|---|
date | Wed, 26 Feb 2014 19:54:17 +0000 |
parents | 5a61b8dd0aad |
children | b4ccac0a65d5 |
files | libao2/ao_sndio.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_sndio.c Wed Feb 26 19:54:15 2014 +0000 +++ b/libao2/ao_sndio.c Wed Feb 26 19:54:17 2014 +0000 @@ -130,8 +130,7 @@ bpf = par.bps * par.pchan; ao_data.format = af_bits2fmt(8 * par.bps); ao_data.format |= par.sig ? AF_FORMAT_SI : AF_FORMAT_US; - if (par.bits > 8) - ao_data.format |= par.le ? AF_FORMAT_LE : AF_FORMAT_BE; + ao_data.format |= par.le ? AF_FORMAT_LE : AF_FORMAT_BE; ao_data.channels = par.pchan; ao_data.bps = bpf * par.rate; ao_data.buffersize = par.bufsz * bpf;