-Fix: Only stop if a loop is playing.
git-svn-id: http://svn.fuzzle.org/mloop/mloop/trunk@3 ba049829-c6ef-42ef-81ac-908dd8d2e907remotes/git-svn@10
parent
4569a323ee
commit
cf1e699840
|
@ -70,7 +70,9 @@ void Loop::Start(bool loop)
|
||||||
|
|
||||||
void Loop::Stop()
|
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)
|
void Loop::StartFromNoteCache(NoteCache &cache)
|
||||||
|
|
Loading…
Reference in New Issue