Mercurial > sdl-ios-xcode
changeset 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 | 6abc7e6f9817 |
children | f25d771fe6f2 |
files | src/audio/alsa/SDL_alsa_audio.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
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;