Commit 2ed05f65 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Add support for pcm_f32* to alsa.

parent 71a2da30
...@@ -36,6 +36,8 @@ ...@@ -36,6 +36,8 @@
static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id) static av_cold snd_pcm_format_t codec_id_to_pcm_format(int codec_id)
{ {
switch(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_S32LE: return SND_PCM_FORMAT_S32_LE;
case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE; case CODEC_ID_PCM_S32BE: return SND_PCM_FORMAT_S32_BE;
case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE; case CODEC_ID_PCM_S16LE: return SND_PCM_FORMAT_S16_LE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment