diff src/audio/alsa/SDL_alsa_audio.c @ 1995:0ca6ba107642

ALSA backend can handle int32 and float32 data directly.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 31 Aug 2006 21:28:21 +0000
parents 3b4ce57c6215
children f2058fb367e4
line wrap: on
line diff
--- 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;