summaryrefslogtreecommitdiffstats
path: root/libao2/ao_pulse.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-07 22:46:50 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-05-07 22:46:50 +0000
commitc8b5921d065283977f31dc5097775a011bfcfcaf (patch)
treead321b9cd799fb38d67dedb928831f3f34de4297 /libao2/ao_pulse.c
parent96fa9c4e249e9467f21e32191882e511e762fb1f (diff)
downloadmpv-c8b5921d065283977f31dc5097775a011bfcfcaf.tar.bz2
mpv-c8b5921d065283977f31dc5097775a011bfcfcaf.tar.xz
Avoid dependency on newer pulseaudio version.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26681 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_pulse.c')
-rw-r--r--libao2/ao_pulse.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libao2/ao_pulse.c b/libao2/ao_pulse.c
index 5140a5e5c5..4fbd0fc5c4 100644
--- a/libao2/ao_pulse.c
+++ b/libao2/ao_pulse.c
@@ -116,10 +116,14 @@ static const struct format_map_s {
} format_maps[] = {
{AF_FORMAT_S16_LE, PA_SAMPLE_S16LE},
{AF_FORMAT_S16_BE, PA_SAMPLE_S16BE},
+#ifdef PA_SAMPLE_S32NE
{AF_FORMAT_S32_LE, PA_SAMPLE_S32LE},
{AF_FORMAT_S32_BE, PA_SAMPLE_S32BE},
+#endif
+#ifdef PA_SAMPLE_FLOAT32NE
{AF_FORMAT_FLOAT_LE, PA_SAMPLE_FLOAT32LE},
{AF_FORMAT_FLOAT_BE, PA_SAMPLE_FLOAT32BE},
+#endif
{AF_FORMAT_U8, PA_SAMPLE_U8},
{AF_FORMAT_MU_LAW, PA_SAMPLE_ULAW},
{AF_FORMAT_A_LAW, PA_SAMPLE_ALAW},