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:
parent
5b03803ab3
commit
a6d24b3875
1 changed files with 12 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue