mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
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
2 changed files with 7 additions and 0 deletions
|
|
@ -1341,6 +1341,10 @@ public:
|
|||
void start_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:
|
||||
friend class AudioEngine;
|
||||
void set_block_size (pframes_t nframes);
|
||||
|
|
@ -2347,6 +2351,8 @@ private:
|
|||
void handle_slots_empty_status (std::weak_ptr<Route> const &);
|
||||
|
||||
void time_domain_changed ();
|
||||
|
||||
AnyTime _global_quantization;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -353,6 +353,7 @@ Session::Session (AudioEngine &eng,
|
|||
, _pending_cue (-1)
|
||||
, _active_cue (-1)
|
||||
, tb_with_filled_slots (0)
|
||||
, _global_quantization (Config->get_default_quantization())
|
||||
{
|
||||
_suspend_save.store (0);
|
||||
_playback_load.store (0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue