[MPlayer-dev-eng] [PATCH] Added audio format s32le and s32be for pulseaudio output

Compn tempn at twmi.rr.com
Sun Apr 13 05:52:41 CEST 2008


On Wed, 26 Mar 2008 14:35:38 -0700 (PDT), James Warden wrote:
>Hello,
>
>mplayer would not play some wav files using s32le
>audio format when I ouputted them to pulseaudio (-ao
>pulse). Looking at the code, I could see that this
>format (and the big endian as well) was missing. See
>patch below. 
>Tested it with mplayer SVN 26278 on Ubuntu Hardy,
>pulseaudio 0.9.9, net-streaming to pulseaudio server
>running on Debian Sid.
>
>Cheers!
>J. 
>
><patch>
>--- libao2/ao_pulse.c   2008-03-26 19:06:20.000000000
>+0100
>+++ libao2/ao_pulse.c.new       2008-03-26
>18:48:53.000000000 +0100
>@@ -121,6 +121,8 @@
>     {AF_FORMAT_FLOAT_BE, PA_SAMPLE_FLOAT32BE},
>     {AF_FORMAT_MU_LAW, PA_SAMPLE_ULAW},
>     {AF_FORMAT_A_LAW, PA_SAMPLE_ALAW},
>+    {AF_FORMAT_S32_LE, PA_SAMPLE_S32LE},
>+    {AF_FORMAT_S32_BE, PA_SAMPLE_S32BE},
>     {AF_FORMAT_UNKNOWN, 0}
> };
>
></patch>


ping reimar

-compn



More information about the MPlayer-dev-eng mailing list