Don't bother interpolating for disconnected control tracks.
This commit is contained in:
parent
7452987e05
commit
221e66d91a
|
@ -373,7 +373,12 @@ Control_Sequence::play ( sample_t *buf, nframes_t frame, nframes_t nframes )
|
|||
nframes_t
|
||||
Control_Sequence::process ( nframes_t nframes )
|
||||
{
|
||||
void *buf = _output->buffer( nframes );
|
||||
if ( _output->connected() ) /* don't waste CPU on disconnected ports */
|
||||
{
|
||||
void *buf = _output->buffer( nframes );
|
||||
|
||||
return play( (sample_t*)buf, transport->frame, nframes );
|
||||
return play( (sample_t*)buf, transport->frame, nframes );
|
||||
}
|
||||
else
|
||||
return nframes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue