add a new global quantization value for a Session
The initial value is taken from the Config object. Currently this is only used for stop-on-grid, and only BBT(_Offset) is observed, and implicitly means "1 bar" for now.
This commit is contained in:
parent
0631f99f15
commit
c8313cd749
@ -1341,6 +1341,10 @@ public:
|
|||||||
void start_domain_bounce (Temporal::DomainBounceInfo&);
|
void start_domain_bounce (Temporal::DomainBounceInfo&);
|
||||||
void finish_domain_bounce (Temporal::DomainBounceInfo&);
|
void finish_domain_bounce (Temporal::DomainBounceInfo&);
|
||||||
|
|
||||||
|
AnyTime global_quantization() const { return _global_quantization; }
|
||||||
|
void set_global_quantization (AnyTime const &);
|
||||||
|
PBD::Signal<void()> QuantizationChanged;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class AudioEngine;
|
friend class AudioEngine;
|
||||||
void set_block_size (pframes_t nframes);
|
void set_block_size (pframes_t nframes);
|
||||||
@ -2347,6 +2351,8 @@ private:
|
|||||||
void handle_slots_empty_status (std::weak_ptr<Route> const &);
|
void handle_slots_empty_status (std::weak_ptr<Route> const &);
|
||||||
|
|
||||||
void time_domain_changed ();
|
void time_domain_changed ();
|
||||||
|
|
||||||
|
AnyTime _global_quantization;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -353,6 +353,7 @@ Session::Session (AudioEngine &eng,
|
|||||||
, _pending_cue (-1)
|
, _pending_cue (-1)
|
||||||
, _active_cue (-1)
|
, _active_cue (-1)
|
||||||
, tb_with_filled_slots (0)
|
, tb_with_filled_slots (0)
|
||||||
|
, _global_quantization (Config->get_default_quantization())
|
||||||
{
|
{
|
||||||
_suspend_save.store (0);
|
_suspend_save.store (0);
|
||||||
_playback_load.store (0);
|
_playback_load.store (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user