summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/bluetooth/a2dp-codec-gst.c3
-rw-r--r--src/modules/bluetooth/a2dp-codec-ldac-gst.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/bluetooth/a2dp-codec-gst.c b/src/modules/bluetooth/a2dp-codec-gst.c
index bbc598467..80032bc7f 100644
--- a/src/modules/bluetooth/a2dp-codec-gst.c
+++ b/src/modules/bluetooth/a2dp-codec-gst.c
@@ -321,6 +321,9 @@ static GstCaps *gst_create_caps_from_sample_spec(const pa_sample_spec *ss) {
case PA_SAMPLE_S32LE:
sample_format = "S32LE";
break;
+ case PA_SAMPLE_FLOAT32LE:
+ sample_format = "F32LE";
+ break;
default:
pa_assert_not_reached();
break;
diff --git a/src/modules/bluetooth/a2dp-codec-ldac-gst.c b/src/modules/bluetooth/a2dp-codec-ldac-gst.c
index d14a35564..0f365b075 100644
--- a/src/modules/bluetooth/a2dp-codec-ldac-gst.c
+++ b/src/modules/bluetooth/a2dp-codec-ldac-gst.c
@@ -208,7 +208,7 @@ bool gst_init_ldac(struct gst_info *info, pa_sample_spec *ss, bool for_encoding)
return false;
}
- ss->format = PA_SAMPLE_S32LE;
+ ss->format = PA_SAMPLE_FLOAT32LE;
switch (info->a2dp_codec_t.ldac_config->frequency) {
case LDAC_SAMPLING_FREQ_44100: