mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- Fixed: FMOD as MIDI device always looped the song, even when it shouldn't (such as the title music).
SVN r3425 (trunk)
This commit is contained in:
parent
51e66acc6b
commit
957f67f7cc
2 changed files with 3 additions and 2 deletions
|
@ -145,7 +145,7 @@ bool TimidityPPMIDIDevice::Preprocess(MIDIStreamer *song, bool looping)
|
|||
CommandLine.UnlockBuffer();
|
||||
|
||||
// Write MIDI song to temporary file
|
||||
song->CreateSMF(midi);
|
||||
song->CreateSMF(midi, looping ? 0 : 1);
|
||||
|
||||
f = fopen(DiskName, "wb");
|
||||
if (f == NULL)
|
||||
|
|
|
@ -255,7 +255,8 @@ bool FMODMIDIDevice::Preprocess(MIDIStreamer *song, bool looping)
|
|||
{
|
||||
TArray<BYTE> midi;
|
||||
|
||||
song->CreateSMF(midi);
|
||||
song->CreateSMF(midi, looping ? 0 : 1);
|
||||
bLooping = looping;
|
||||
Stream = GSnd->OpenStream((char *)&midi[0], looping ? SoundStream::Loop : 0, -1, midi.Size());
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue