Browse Source

Don't bother interpolating for disconnected control tracks.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
221e66d91a
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      Timeline/Control_Sequence.C

+ 7
- 2
Timeline/Control_Sequence.C View File

@@ -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…
Cancel
Save