mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
alsa: Add mapping for PCM F32/F64 formats
Fix enables float pcm formats for both the alsasrc and alsasink https://bugzilla.gnome.org/show_bug.cgi?id=782695
This commit is contained in:
parent
67fb3b12ee
commit
f460d7d184
1 changed files with 8 additions and 0 deletions
|
@ -126,6 +126,14 @@ gst_alsa_get_pcm_format (GstAudioFormat fmt)
|
|||
return SND_PCM_FORMAT_U32_LE;
|
||||
case GST_AUDIO_FORMAT_U32BE:
|
||||
return SND_PCM_FORMAT_U32_BE;
|
||||
case GST_AUDIO_FORMAT_F32LE:
|
||||
return SND_PCM_FORMAT_FLOAT_LE;
|
||||
case GST_AUDIO_FORMAT_F32BE:
|
||||
return SND_PCM_FORMAT_FLOAT_BE;
|
||||
case GST_AUDIO_FORMAT_F64LE:
|
||||
return SND_PCM_FORMAT_FLOAT64_LE;
|
||||
case GST_AUDIO_FORMAT_F64BE:
|
||||
return SND_PCM_FORMAT_FLOAT64_BE;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue