Skip to content

Commit

Permalink
fix musescore#15047: use the internal MuseSamplerWrapper position
Browse files Browse the repository at this point in the history
since we're not working with the position from AbstractEventSequencer
(AbstractEventSequencer::eventsToBePlayed isn't called, so we don't update it)
  • Loading branch information
RomanPudashkin authored and rettinghaus committed Jan 8, 2024
1 parent f874309 commit 5598ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/musesampler/internal/musesamplerwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void MuseSamplerWrapper::updateRenderingMode(const audio::RenderMode mode)

msecs_t MuseSamplerWrapper::playbackPosition() const
{
return m_sequencer.playbackPosition();
return samplesToMsecs(m_currentPosition, m_sampleRate);
}

void MuseSamplerWrapper::setPlaybackPosition(const audio::msecs_t newPosition)
Expand Down

0 comments on commit 5598ffd

Please sign in to comment.