[MPlayer-cvslog] r29434 - trunk/libao2/ao_alsa.c
cladisch
subversion at mplayerhq.hu
Tue Jul 21 10:20:22 CEST 2009
Author: cladisch
Date: Tue Jul 21 10:20:22 2009
New Revision: 29434
Log:
Use correct ALSA sample format for 24-bit samples packed in three bytes.
Modified:
trunk/libao2/ao_alsa.c
Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c Sun Jul 19 23:24:45 2009 (r29433)
+++ trunk/libao2/ao_alsa.c Tue Jul 21 10:20:22 2009 (r29434)
@@ -393,16 +393,16 @@ static int init(int rate_hz, int channel
alsa_format = SND_PCM_FORMAT_S32_BE;
break;
case AF_FORMAT_U24_LE:
- alsa_format = SND_PCM_FORMAT_U24_LE;
+ alsa_format = SND_PCM_FORMAT_U24_3LE;
break;
case AF_FORMAT_U24_BE:
- alsa_format = SND_PCM_FORMAT_U24_BE;
+ alsa_format = SND_PCM_FORMAT_U24_3BE;
break;
case AF_FORMAT_S24_LE:
- alsa_format = SND_PCM_FORMAT_S24_LE;
+ alsa_format = SND_PCM_FORMAT_S24_3LE;
break;
case AF_FORMAT_S24_BE:
- alsa_format = SND_PCM_FORMAT_S24_BE;
+ alsa_format = SND_PCM_FORMAT_S24_3BE;
break;
case AF_FORMAT_FLOAT_LE:
alsa_format = SND_PCM_FORMAT_FLOAT_LE;
More information about the MPlayer-cvslog
mailing list