[MPlayer-cvslog] CVS: main/libao2 ao_alsa.c,1.25,1.26

Clemens Ladisch CVS syncmail at mplayerhq.hu
Fri Feb 10 10:20:10 CET 2006


CVS change done by Clemens Ladisch CVS

Update of /cvsroot/mplayer/main/libao2
In directory mail:/var2/tmp/cvs-serv4215/libao2

Modified Files:
	ao_alsa.c 
Log Message:
This adds support for more sample formats (U32, float BE, mu/A-law).

Index: ao_alsa.c
===================================================================
RCS file: /cvsroot/mplayer/main/libao2/ao_alsa.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- ao_alsa.c	10 Feb 2006 09:18:27 -0000	1.25
+++ ao_alsa.c	10 Feb 2006 09:20:08 -0000	1.26
@@ -325,6 +325,12 @@
       case AF_FORMAT_S16_BE:
 	alsa_format = SND_PCM_FORMAT_S16_BE;
 	break;
+      case AF_FORMAT_U32_LE:
+	alsa_format = SND_PCM_FORMAT_U32_LE;
+	break;
+      case AF_FORMAT_U32_BE:
+	alsa_format = SND_PCM_FORMAT_U32_BE;
+	break;
       case AF_FORMAT_S32_LE:
 	alsa_format = SND_PCM_FORMAT_S32_LE;
 	break;
@@ -334,6 +340,15 @@
       case AF_FORMAT_FLOAT_LE:
 	alsa_format = SND_PCM_FORMAT_FLOAT_LE;
 	break;
+      case AF_FORMAT_FLOAT_BE:
+	alsa_format = SND_PCM_FORMAT_FLOAT_BE;
+	break;
+      case AF_FORMAT_MU_LAW:
+	alsa_format = SND_PCM_FORMAT_MU_LAW;
+	break;
+      case AF_FORMAT_A_LAW:
+	alsa_format = SND_PCM_FORMAT_A_LAW;
+	break;
 
       default:
 	alsa_format = SND_PCM_FORMAT_MPEG; //? default should be -1




More information about the MPlayer-cvslog mailing list