@@ -31,24 +31,23 @@ struct ScrubHelper {
3131
3232 ScrubHelper () = default ;
3333
34- void set_custom_duration_ms (const int ms) {
35- scrub_window_millisecs_ = ms;
36- }
37- void set_behaviour (const std::string &behaviour) {
34+ void set_custom_duration_ms (const int ms) { scrub_window_millisecs_ = ms; }
35+ void set_behaviour (const std::string &behaviour) {
3836 const auto p = scrubBehaviourMap.find (behaviour);
39- if (p != scrubBehaviourMap.end ()) scrub_behaviour_= p->second ;
40- else scrub_behaviour_ = ScrubBehaviour::OneFrame;
37+ if (p != scrubBehaviourMap.end ())
38+ scrub_behaviour_ = p->second ;
39+ else
40+ scrub_behaviour_ = ScrubBehaviour::OneFrame;
4141 }
4242
43- timebase::flicks scrub_duration (const utility::FrameRate & media_rate) const ;
44- double scrub_duration_secs (const utility::FrameRate & media_rate) const {
43+ timebase::flicks scrub_duration (const utility::FrameRate &media_rate) const ;
44+ double scrub_duration_secs (const utility::FrameRate &media_rate) const {
4545 return timebase::to_seconds (scrub_duration (media_rate));
4646 }
4747
48- private:
49- int scrub_window_millisecs_ = {50 };
50- ScrubBehaviour scrub_behaviour_ = {OneFrame};
51-
48+ private:
49+ int scrub_window_millisecs_ = {50 };
50+ ScrubBehaviour scrub_behaviour_ = {OneFrame};
5251};
5352
5453/* *
@@ -60,8 +59,6 @@ struct ScrubHelper {
6059class AudioOutputControl {
6160
6261 public:
63-
64-
6562 /* *
6663 * @brief Constructor
6764 *
@@ -145,12 +142,12 @@ class AudioOutputControl {
145142 const bool muted,
146143 const bool audio_repitch,
147144 const bool audio_scrubbing,
148- const std::string & scrub_behaviour,
145+ const std::string &scrub_behaviour,
149146 const int scrub_window_millisecs) {
150- volume_ = volume;
151- muted_ = muted;
152- audio_repitch_ = audio_repitch;
153- audio_scrubbing_ = audio_scrubbing;
147+ volume_ = volume;
148+ muted_ = muted;
149+ audio_repitch_ = audio_repitch;
150+ audio_scrubbing_ = audio_scrubbing;
154151 scrub_helper_.set_behaviour (scrub_behaviour);
155152 scrub_helper_.set_custom_duration_ms (scrub_window_millisecs);
156153 }
@@ -185,8 +182,10 @@ class AudioOutputControl {
185182 int fade_in_out_ = {NoFade};
186183
187184 timebase::flicks playhead_position_;
188- timebase::flicks playhead_loop_in_ = {timebase::flicks (std::numeric_limits<timebase::flicks::rep>::lowest ())};
189- timebase::flicks playhead_loop_out_ = {timebase::flicks (std::numeric_limits<timebase::flicks::rep>::max ())};
185+ timebase::flicks playhead_loop_in_ = {
186+ timebase::flicks (std::numeric_limits<timebase::flicks::rep>::lowest ())};
187+ timebase::flicks playhead_loop_out_ = {
188+ timebase::flicks (std::numeric_limits<timebase::flicks::rep>::max ())};
190189 bool playing_forward_ = {true };
191190 utility::time_point playhead_position_update_tp_;
192191 timebase::flicks last_buffer_pts_;
0 commit comments