- Make sure Tempo is initialized before creating SMFs.

SVN r2684 (trunk)
This commit is contained in:
Randy Heit 2010-09-04 02:57:36 +00:00
parent 070ec75785
commit 84b9de8c14

View file

@ -969,6 +969,7 @@ void MIDIStreamer::CreateSMF(TArray<BYTE> &file)
CheckCaps(MOD_MIDIPORT); CheckCaps(MOD_MIDIPORT);
IgnoreLoops = true; IgnoreLoops = true;
DoRestart(); DoRestart();
Tempo = InitialTempo;
file.Reserve(sizeof(StaticMIDIhead)); file.Reserve(sizeof(StaticMIDIhead));
memcpy(&file[0], StaticMIDIhead, sizeof(StaticMIDIhead)); memcpy(&file[0], StaticMIDIhead, sizeof(StaticMIDIhead));