[pulseaudio-discuss] [PATCH] format: Fix rate for HBR passthrough formats

Arun Raghavan arun at arunraghavan.net
Tue May 22 04:13:21 UTC 2018


In high bitrate mode, we force 192kHz/8ch as the sample format, which is
the expectation for HBR formats (as that is what allows for the largest
possible packet size).
---
 src/pulsecore/core-format.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/pulsecore/core-format.c b/src/pulsecore/core-format.c
index 862a74b5d..096acc3a2 100644
--- a/src/pulsecore/core-format.c
+++ b/src/pulsecore/core-format.c
@@ -248,6 +248,9 @@ int pa_format_info_to_sample_spec_fake(const pa_format_info *f, pa_sample_spec *
 
     if (f->encoding == PA_ENCODING_EAC3_IEC61937)
         ss->rate *= 4;
+    else if ((f->encoding == PA_ENCODING_TRUEHD_IEC61937) ||
+             (f->encoding == PA_ENCODING_DTSHD_IEC61937))
+        ss->rate = 192000;
 
     return 0;
 }
-- 
2.17.0



More information about the pulseaudio-discuss mailing list