From 2ed05f657f622a1c84f97a841a488e876f734201 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 5 Apr 2011 16:12:41 +0200 Subject: [PATCH] Add support for pcm_f32* to alsa. --- libavdevice/alsa-audio-common.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index bf22702792..46ac162711 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -36,6 +36,8 @@ static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id) { switch(codec_id) { + case CODEC_ID_PCM_F32LE: return SND_PCM_FORMAT_FLOAT_LE; + case CODEC_ID_PCM_F32BE: return SND_PCM_FORMAT_FLOAT_BE; case CODEC_ID_PCM_S32LE: return SND_PCM_FORMAT_S32_LE; case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE; case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE;