Scratching now also works when stopped

This commit is contained in:
2020-04-28 00:26:40 +02:00
parent 5bdf60fc82
commit 2919ca2db6
6 changed files with 65 additions and 5 deletions

View File

@ -65,8 +65,11 @@ void AudioPlayer::writeSamples(frame_t *begin, frame_t *end)
m_lastPositionUpdate = now;
}
if (ended)
emit playingChanged(m_playing = false);
if (ended && m_stopOnEnd)
{
m_playing = false;
emit playingChanged(m_playing);
}
}
void AudioPlayer::setPlaying(bool playing)