Skip to content

Commit

Permalink
SampleTrack: Reset the start time offset when importing a new SampleB…
Browse files Browse the repository at this point in the history
…uffer.

That solves problem with recording that caused samples to be moved and
messed up.

Thanks @-BaraMGB for helping.
  • Loading branch information
Reflexe authored and PhysSong committed Mar 11, 2019
1 parent c7acb99 commit dace072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tracks/SampleTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const QString & SampleTCO::sampleFile() const
void SampleTCO::setSampleBuffer( SampleBuffer* sb )
{
sharedObject::unref( m_sampleBuffer );
setStartTimeOffset( 0 );
m_sampleBuffer = sb;
updateLength();

Expand Down

0 comments on commit dace072

Please sign in to comment.