summaryrefslogtreecommitdiff
path: root/src/wx/audio_panel.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-23 22:21:29 +0100
committerCarl Hetherington <cth@carlh.net>2022-04-04 23:09:12 +0200
commit0e164ad80f0ceff9d643f3b466690d013c3be19d (patch)
treec656a136c12ff3c5d9bf8f7331610162de0c0592 /src/wx/audio_panel.h
parent8eb951b71fa90e54c8da64e54cf5ddf6bf0809cf (diff)
Add fade in/out option to the content audio tab (#1026).
Diffstat (limited to 'src/wx/audio_panel.h')
-rw-r--r--src/wx/audio_panel.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/audio_panel.h b/src/wx/audio_panel.h
index 5e8f92597..bc3bd9755 100644
--- a/src/wx/audio_panel.h
+++ b/src/wx/audio_panel.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2022 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -22,6 +22,7 @@
#include "lib/audio_mapping.h"
#include "content_sub_panel.h"
#include "content_widget.h"
+#include "timecode.h"
class wxSpinCtrlDouble;
@@ -56,6 +57,8 @@ private:
void reference_clicked ();
void add_to_grid () override;
boost::optional<float> peak () const;
+ void fade_in_changed ();
+ void fade_out_changed ();
wxCheckBox* _reference;
wxStaticText* _reference_note;
@@ -68,6 +71,10 @@ private:
wxStaticText* _delay_label;
wxStaticText* _delay_ms_label;
ContentSpinCtrl<AudioContent>* _delay;
+ wxStaticText* _fade_in_label;
+ Timecode<dcpomatic::ContentTime>* _fade_in;
+ wxStaticText* _fade_out_label;
+ Timecode<dcpomatic::ContentTime>* _fade_out;
AudioMappingView* _mapping;
wxStaticText* _description;
AudioDialog* _audio_dialog;