13
0

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:
Paul Davis 2024-10-28 14:27:30 -06:00
parent 0631f99f15
commit c8313cd749
2 changed files with 7 additions and 0 deletions

View File

@ -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;
};

View File

@ -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);