Pan: remove automation-state indirection 2/2
This commit is contained in:
parent
b760d541c6
commit
ac9e16f0b8
@ -107,11 +107,6 @@ public:
|
||||
/* azimut, width or elevation updated -> recalc signal_position -> emit Changed */
|
||||
PBD::Signal0<void> SignalPositionChanged;
|
||||
|
||||
void set_automation_state (AutoState);
|
||||
AutoState automation_state() const;
|
||||
|
||||
bool touching() const;
|
||||
|
||||
/**
|
||||
* Pan some input buffers to a number of output buffers.
|
||||
*
|
||||
|
@ -68,24 +68,6 @@ Panner::distribute_automated (BufferSet& ibufs, BufferSet& obufs,
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Panner::set_automation_state (AutoState state)
|
||||
{
|
||||
_pannable->set_automation_state (state);
|
||||
}
|
||||
|
||||
AutoState
|
||||
Panner::automation_state () const
|
||||
{
|
||||
return _pannable->automation_state();
|
||||
}
|
||||
|
||||
bool
|
||||
Panner::touching () const
|
||||
{
|
||||
return _pannable->touching ();
|
||||
}
|
||||
|
||||
int
|
||||
Panner::set_state (XMLNode const &, int)
|
||||
{
|
||||
|
@ -386,11 +386,11 @@ PannerShell::run (BufferSet& inbufs, BufferSet& outbufs, samplepos_t start_sampl
|
||||
|
||||
// More than 1 output
|
||||
|
||||
AutoState as = _panner->automation_state ();
|
||||
AutoState as = pannable ()->automation_state ();
|
||||
|
||||
// If we shouldn't play automation defer to distribute_no_automation
|
||||
|
||||
if (!((as & Play) || ((as & (Touch | Latch)) && !_panner->touching()))) {
|
||||
if (!((as & Play) || ((as & (Touch | Latch)) && !pannable ()->touching ()))) {
|
||||
|
||||
distribute_no_automation (inbufs, outbufs, nframes, 1.0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user