13
0

Pan: remove automation-state indirection 2/2

This commit is contained in:
Robin Gareus 2020-03-23 16:41:22 +01:00
parent b760d541c6
commit ac9e16f0b8
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 2 additions and 25 deletions

View File

@ -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.
*

View File

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

View File

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