SampleTrack: In a case of recording, play a sample TCO even if its
actual data starts after that.
This commit is contained in:
@@ -95,7 +95,8 @@ bool SampleTrack::play( const TimePos & _start, const fpp_t _frames,
|
||||
|
||||
if( _start >= sTco->startPosition() && _start < sTco->endPosition() )
|
||||
{
|
||||
if( sTco->isPlaying() == false && _start >= (sTco->startPosition() + sTco->startTimeOffset()) )
|
||||
if( sTco->isPlaying() == false && (_start >= (sTco->startPosition() + sTco->startTimeOffset())
|
||||
|| sTco->isRecord ()) )
|
||||
{
|
||||
auto bufferFramesPerTick = Engine::framesPerTick (sTco->sampleBuffer ()->sampleRate ());
|
||||
f_cnt_t sampleStart = bufferFramesPerTick * ( _start - sTco->startPosition() - sTco->startTimeOffset() );
|
||||
|
||||
Reference in New Issue
Block a user