diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-06 14:31:12 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-06 14:31:12 +0000 |
| commit | 7e25d487cba3c23d847aedee84a8e5143f4a209c (patch) | |
| tree | 1fa33dc4ec81e27dc3f2b8b49c93a1f6a5707b30 /src/lib/util.cc | |
| parent | b681612ff9f1cdb06d9aa5b246dc294442a31ddb (diff) | |
| parent | e9fa6f47c5cd52f0b56f277fdeaf6a4f636ddf01 (diff) | |
Merge branch 'master' of /home/carl/git/dvdomatic
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 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); |
