diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-05 00:02:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-05 00:02:06 +0100 |
| commit | 886ef57aeac4772c0f8078925d83e78a6e30ec03 (patch) | |
| tree | b63f3f0d790300e7311a303e151f2b5b02298d42 /src | |
| parent | a44d87088c380e2e282b1df65d6bd55795091c72 (diff) | |
Add audio gain to timeline content view.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/timeline_audio_content_view.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wx/timeline_audio_content_view.cc b/src/wx/timeline_audio_content_view.cc index fe098c48b..330196a97 100644 --- a/src/wx/timeline_audio_content_view.cc +++ b/src/wx/timeline_audio_content_view.cc @@ -55,6 +55,13 @@ TimelineAudioContentView::label () const wxString s = TimelineContentView::label (); shared_ptr<AudioContent> ac = content()->audio; DCPOMATIC_ASSERT (ac); + + if (ac->gain() > 0.01) { + s += wxString::Format (" +%.1fdB", ac->gain()); + } else if (ac->gain() < -0.01) { + s += wxString::Format (" %.1fdB", ac->gain()); + } + list<int> mapped = ac->mapping().mapped_output_channels(); if (!mapped.empty ()) { s += " → "; @@ -63,5 +70,6 @@ TimelineAudioContentView::label () const } s = s.Left(s.Length() - 2); } + return s; } |
