Whoops, wrong tokens for int32 support in ALSA driver (specified unsigned
authorRyan C. Gordon <icculus@icculus.org>
Fri, 01 Sep 2006 18:04:01 +0000
changeset 2010 39897da56f63
parent 2009 f2058fb367e4
child 2011 b2b7154ce016
Whoops, wrong tokens for int32 support in ALSA driver (specified unsigned where it should be signed!).
src/audio/alsa/SDL_alsa_audio.c
--- a/src/audio/alsa/SDL_alsa_audio.c	Fri Sep 01 17:49:27 2006 +0000
+++ b/src/audio/alsa/SDL_alsa_audio.c	Fri Sep 01 18:04:01 2006 +0000
@@ -544,10 +544,10 @@
             format = SND_PCM_FORMAT_U16_BE;
             break;
         case AUDIO_S32LSB:
-            format = SND_PCM_FORMAT_U32_LE;
+            format = SND_PCM_FORMAT_S32_LE;
             break;
         case AUDIO_S32MSB:
-            format = SND_PCM_FORMAT_U32_BE;
+            format = SND_PCM_FORMAT_S32_BE;
             break;
         case AUDIO_F32LSB:
             format = SND_PCM_FORMAT_FLOAT_LE;