mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2025-01-18 21:21:36 +00:00
- Fixed: S_ChangeMusic() would not necessarily restart non-looping songs that had finished playing.
SVN r3462 (trunk)
This commit is contained in:
parent
c53c8f29e7
commit
78d28dedda
2 changed files with 8 additions and 0 deletions
|
@ -2379,6 +2379,10 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force)
|
||||||
mus_playing.baseorder = order;
|
mus_playing.baseorder = order;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (!mus_playing.handle->IsPlaying())
|
||||||
|
{
|
||||||
|
mus_playing.handle->Play(looping, order);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -518,6 +518,10 @@ void MIDIStreamer::Stop()
|
||||||
|
|
||||||
bool MIDIStreamer::IsPlaying()
|
bool MIDIStreamer::IsPlaying()
|
||||||
{
|
{
|
||||||
|
if (EndQueued != 0 && EndQueued < 4)
|
||||||
|
{
|
||||||
|
Stop();
|
||||||
|
}
|
||||||
return m_Status != STATE_Stopped;
|
return m_Status != STATE_Stopped;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue