mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
switch to a more efficient implementation of Processor::check_active()
This commit is contained in:
parent
786388b5b6
commit
ebc5195490
2 changed files with 1 additions and 16 deletions
|
|
@ -161,7 +161,7 @@ protected:
|
||||||
virtual XMLNode& state ();
|
virtual XMLNode& state ();
|
||||||
virtual int set_state_2X (const XMLNode&, int version);
|
virtual int set_state_2X (const XMLNode&, int version);
|
||||||
|
|
||||||
bool check_active ();
|
bool check_active () { return (_active = _pending_active); }
|
||||||
bool map_loop_range (samplepos_t& start, samplepos_t& end) const;
|
bool map_loop_range (samplepos_t& start, samplepos_t& end) const;
|
||||||
|
|
||||||
int _pending_active;
|
int _pending_active;
|
||||||
|
|
|
||||||
|
|
@ -332,18 +332,3 @@ Processor::owner() const
|
||||||
{
|
{
|
||||||
return _owner;
|
return _owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
|
||||||
Processor::check_active ()
|
|
||||||
{
|
|
||||||
if (_active) {
|
|
||||||
if (!_pending_active) {
|
|
||||||
_active = false;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (_pending_active) {
|
|
||||||
_active = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return _active;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue