mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +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;
|
||||
}
|
||||
}
|
||||
else if (!mus_playing.handle->IsPlaying())
|
||||
{
|
||||
mus_playing.handle->Play(looping, order);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -518,6 +518,10 @@ void MIDIStreamer::Stop()
|
|||
|
||||
bool MIDIStreamer::IsPlaying()
|
||||
{
|
||||
if (EndQueued != 0 && EndQueued < 4)
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
return m_Status != STATE_Stopped;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue