mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +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