diff options
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); |
