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.
This commit is contained in:
Sam Lantinga 2013-07-10 22:01:24 -07:00
parent 5b03803ab3
commit a6d24b3875

View file

@ -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;