changeset 29386:9ccfc57f0eff

Handle 24bit audio formats natively by ALSA.
author iive
date Sun, 19 Jul 2009 10:26:48 +0000
parents f9ae25067fe0
children 0b25cce295e6
files libao2/ao_alsa.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_alsa.c	Sun Jul 19 09:55:29 2009 +0000
+++ b/libao2/ao_alsa.c	Sun Jul 19 10:26:48 2009 +0000
@@ -392,6 +392,18 @@
       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;