Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

ALSA backend can handle int32 and float32 data directly.

  • Loading branch information
icculus committed Aug 31, 2006
1 parent 7228939 commit 43fbc7de5d7a754c7f444d3530c08caf3cc50d18
Showing with 12 additions and 0 deletions.
  1. +12 −0 src/audio/alsa/SDL_alsa_audio.c
@@ -542,6 +542,18 @@ ALSA_OpenAudio(_THIS, SDL_AudioSpec * spec)
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;

0 comments on commit 43fbc7d

Please sign in to comment.