diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-05 16:12:41 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-04-05 16:12:41 +0200 |
commit | 2ed05f657f622a1c84f97a841a488e876f734201 (patch) | |
tree | 400a9abdecf5210a1f52e4f0be88362710578e72 | |
parent | 71a2da30cd0bf42e48ab4b0e64a2911ddec5a7ba (diff) | |
download | ffmpeg-2ed05f657f622a1c84f97a841a488e876f734201.tar.gz |
Add support for pcm_f32* to alsa.
-rw-r--r-- | libavdevice/alsa-audio-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |