ALSA backend can handle int32 and float32 data directly.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 31 Aug 2006 21:28:21 +0000
changeset 1995 0ca6ba107642
parent 1994 6abc7e6f9817
child 1996 f25d771fe6f2
ALSA backend can handle int32 and float32 data directly.
src/audio/alsa/SDL_alsa_audio.c
--- a/src/audio/alsa/SDL_alsa_audio.c	Thu Aug 31 21:00:10 2006 +0000
+++ b/src/audio/alsa/SDL_alsa_audio.c	Thu Aug 31 21:28:21 2006 +0000
@@ -542,6 +542,18 @@
         case AUDIO_U16MSB:
             format = SND_PCM_FORMAT_U16_BE;
             break;
+        case AUDIO_S32LSB:
+            format = SND_PCM_FORMAT_U32_LE;
+            break;
+        case AUDIO_S32MSB:
+            format = SND_PCM_FORMAT_U32_BE;
+            break;
+        case AUDIO_F32LSB:
+            format = SND_PCM_FORMAT_FLOAT_LE;
+            break;
+        case AUDIO_F32MSB:
+            format = SND_PCM_FORMAT_FLOAT_BE;
+            break;
         default:
             format = 0;
             break;