[MPlayer-cvslog] r29428 - trunk/libao2/ao_alsa.c

iive subversion at mplayerhq.hu
Sun Jul 19 12:26:48 CEST 2009


Author: iive
Date: Sun Jul 19 12:26:48 2009
New Revision: 29428

Log:
Handle 24bit audio formats natively by ALSA.

Modified:
   trunk/libao2/ao_alsa.c

Modified: trunk/libao2/ao_alsa.c
==============================================================================
--- trunk/libao2/ao_alsa.c	Sun Jul 19 11:55:29 2009	(r29427)
+++ trunk/libao2/ao_alsa.c	Sun Jul 19 12:26:48 2009	(r29428)
@@ -392,6 +392,18 @@ static int init(int rate_hz, int channel
       case AF_FORMAT_S32_BE:
 	alsa_format = SND_PCM_FORMAT_S32_BE;
 	break;
+      case AF_FORMAT_U24_LE:
+	alsa_format = SND_PCM_FORMAT_U24_LE;
+	break;
+      case AF_FORMAT_U24_BE:
+	alsa_format = SND_PCM_FORMAT_U24_BE;
+	break;
+      case AF_FORMAT_S24_LE:
+	alsa_format = SND_PCM_FORMAT_S24_LE;
+	break;
+      case AF_FORMAT_S24_BE:
+	alsa_format = SND_PCM_FORMAT_S24_BE;
+	break;
       case AF_FORMAT_FLOAT_LE:
 	alsa_format = SND_PCM_FORMAT_FLOAT_LE;
 	break;


More information about the MPlayer-cvslog mailing list