From e3c2aaa6fa61423805d0659d9625bb52337cd6ba Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Aug 2008 00:06:27 +0200 Subject: Support S32 sample types PulseAudio has been supporting these for a while, so let's make use of them here. --- pulse/pcm_pulse.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pulse') diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index 7201776..188641c 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -619,6 +619,12 @@ static int pulse_hw_params(snd_pcm_ioplug_t * io, case SND_PCM_FORMAT_FLOAT_BE: pcm->ss.format = PA_SAMPLE_FLOAT32BE; break; + case SND_PCM_FORMAT_S32_LE: + pcm->ss.format = PA_SAMPLE_S32LE; + break; + case SND_PCM_FORMAT_S32_BE: + pcm->ss.format = PA_SAMPLE_S32BE; + break; default: SNDERR("PulseAudio: Unsupported format %s\n", snd_pcm_format_name(io->format)); @@ -716,7 +722,9 @@ static int pulse_hw_constraint(snd_pcm_pulse_t * pcm) SND_PCM_FORMAT_S16_LE, SND_PCM_FORMAT_S16_BE, SND_PCM_FORMAT_FLOAT_LE, - SND_PCM_FORMAT_FLOAT_BE + SND_PCM_FORMAT_FLOAT_BE, + SND_PCM_FORMAT_S32_LE, + SND_PCM_FORMAT_S32_BE }; int err; -- cgit