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.
--- a/src/audio/pulseaudio/SDL_pulseaudio.c Wed Jul 10 21:57:31 2013 -0700
+++ b/src/audio/pulseaudio/SDL_pulseaudio.c Wed Jul 10 22:01:24 2013 -0700
@@ -360,6 +360,18 @@
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;