mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Similar fix to the previous: The child TiMidity++ process quitting would not necessarily be
detected, so S_ChangeMusic() would not restart one-shot songs that had finished if it was the MIDI device. SVN r3463 (trunk)
This commit is contained in:
parent
78d28dedda
commit
cd122f944b
1 changed files with 5 additions and 1 deletions
|
@ -518,7 +518,11 @@ void MIDIStreamer::Stop()
|
|||
|
||||
bool MIDIStreamer::IsPlaying()
|
||||
{
|
||||
if (EndQueued != 0 && EndQueued < 4)
|
||||
if (m_Status != STATE_Stopped && MIDI == NULL || (EndQueued != 0 && EndQueued < 4))
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
if (m_Status != STATE_Stopped && !MIDI->IsOpen())
|
||||
{
|
||||
Stop();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue