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

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 1949 - Pulseaudio 32 bit audio formats support
Matt Scheirer

Pulse has supported (since version 0.8, at least) 32 bit audio formats that are now becoming available in SDL2. This patch adds those format conversions to the switch clause in the pulseaudio backend.
  • Loading branch information
slouken committed Jul 11, 2013
1 parent d3b7436 commit 431d269
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/audio/pulseaudio/SDL_pulseaudio.c
Expand Up @@ -360,6 +360,18 @@ PULSEAUDIO_OpenDevice(_THIS, const char *devname, int iscapture)
case AUDIO_S16MSB:
paspec.format = PA_SAMPLE_S16BE;
break;
case AUDIO_S32LSB:
paspec.format = PA_SAMPLE_S32LE;
break;
case AUDIO_S32MSB:
paspec.format = PA_SAMPLE_S32BE;
break;
case AUDIO_F32LSB:
paspec.format = PA_SAMPLE_FLOAT32LE
break;
case AUDIO_F32MSB:
paspec.format = PA_SAMPLE_FLOAT32BE
break;
default:
paspec.format = PA_SAMPLE_INVALID;
break;
Expand Down

0 comments on commit 431d269

Please sign in to comment.