# HG changeset patch # User Ryan C. Gordon # Date 1157059701 0 # Node ID 0ca6ba10764227ac80180971b0418ffd290ff132 # Parent 6abc7e6f9817a187451fcb2d6202b604c4f0beba ALSA backend can handle int32 and float32 data directly. diff -r 6abc7e6f9817 -r 0ca6ba107642 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;