[MPlayer-dev-eng] [patch] fix playback of 8-bit audio when sndio ao is used
Brad Smith
brad at comstyle.com
Tue Feb 25 09:18:20 CET 2014
On 17/02/14 1:18 PM, Alexandre Ratchov wrote:
> Hi,
>
> This diff unbreaks playback of u8 audio. AFAIU, the endianness bit
> must be set to AF_FORMAT_NE for 8-bit formats.
Any comment regarding this diff?
> Index: libao2/ao_sndio.c
> ===================================================================
> --- libao2/ao_sndio.c (revision 36873)
> +++ libao2/ao_sndio.c (working copy)
> @@ -132,6 +132,8 @@
> 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;
> + else
> + ao_data.format |= AF_FORMAT_NE;
> ao_data.channels = par.pchan;
> ao_data.bps = bpf * par.rate;
> ao_data.buffersize = par.bufsz * bpf;
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the MPlayer-dev-eng
mailing list