From e9fa6f47c5cd52f0b56f277fdeaf6a4f636ddf01 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jan 2013 14:29:40 +0000 Subject: Try to put mono sound tracks on the centre speaker. --- src/lib/util.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/lib/util.cc') diff --git a/src/lib/util.cc b/src/lib/util.cc index 45965385c..395c53e31 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -364,6 +364,20 @@ dcp_audio_sample_rate (int fs) return 96000; } +int +dcp_audio_channels (int f) +{ + if (f) { + /* The source is mono, so to put the mono channel into + the centre we need to generate a 5.1 soundtrack. + */ + return 6; + } + + return f; +} + + bool operator== (Size const & a, Size const & b) { return (a.width == b.width && a.height == b.height); -- cgit v1.2.3