We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc3b89 commit 649b65bCopy full SHA for 649b65b
src/core/SampleRecordHandle.cpp
@@ -50,9 +50,15 @@ SampleRecordHandle::~SampleRecordHandle()
50
{
51
if( !m_buffers.empty() )
52
53
+ auto sampleStart = m_tco->sampleBuffer ()->startFrame ();
54
+
55
SampleBuffer* sb;
56
createSampleBuffer( &sb );
57
m_tco->setSampleBuffer( sb );
58
59
+ // Apply the sample buffer offset from the start of the TCO.
60
+ MidiTime startTimeOffset = (tick_t)( sampleStart / Engine::framesPerTick());
61
+ m_tco->setStartTimeOffset (startTimeOffset);
62
}
63
64
while( !m_buffers.empty() )
0 commit comments