Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
ALSA backend can handle int32 and float32 data directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Aug 31, 2006
1 parent 7228939 commit 43fbc7d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -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;
Expand Down

0 comments on commit 43fbc7d

Please sign in to comment.