Don't bother interpolating for disconnected control tracks.
This commit is contained in:
parent
7452987e05
commit
221e66d91a
|
@ -372,8 +372,13 @@ Control_Sequence::play ( sample_t *buf, nframes_t frame, nframes_t nframes )
|
||||||
/* THREAD: RT */
|
/* THREAD: RT */
|
||||||
nframes_t
|
nframes_t
|
||||||
Control_Sequence::process ( nframes_t nframes )
|
Control_Sequence::process ( nframes_t nframes )
|
||||||
|
{
|
||||||
|
if ( _output->connected() ) /* don't waste CPU on disconnected ports */
|
||||||
{
|
{
|
||||||
void *buf = _output->buffer( nframes );
|
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