-Fix: Only stop if a loop is playing.

git-svn-id: http://svn.fuzzle.org/mloop/mloop/trunk@3 ba049829-c6ef-42ef-81ac-908dd8d2e907
remotes/git-svn@10
petern 2009-07-21 21:44:00 +00:00
parent 4569a323ee
commit cf1e699840
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ void Loop::Start(bool loop)
void Loop::Stop()
{
m_state = LS_STOPPING;
if (m_state == LS_PLAY_ONCE || m_state == LS_PLAY_LOOP) {
m_state = LS_STOPPING;
}
}
void Loop::StartFromNoteCache(NoteCache &cache)