diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-09 18:48:19 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-09 18:48:19 +0000 |
| commit | 29d863fb2533fe754a82a5274caf19a3b19e2994 (patch) | |
| tree | 01b50cb12db11676b95cbeb1a0cae8ba45508688 /src/lib/util.cc | |
| parent | dfa88d5ad8760d10c15864d01aae9eb8222060ea (diff) | |
| parent | c4cce451a4234e3e41865d7dc5073ed3ad061e3c (diff) | |
Merge master.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 9d42a52e5..987c2b9e5 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -367,6 +367,20 @@ dcp_audio_sample_rate (int fs) return 96000; } +int +dcp_audio_channels (int f) +{ + if (f == 1) { + /* 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); |
