summaryrefslogtreecommitdiff
path: root/src/music
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2010-07-09 20:50:28 +0000
committermichi_cc <michi_cc@openttd.org>2010-07-09 20:50:28 +0000
commit58f1470129cc9adc4f41df6ef4068baa7e2cf04e (patch)
tree7997940b73c28f4391868f748609fac08ec3d4a7 /src/music
parentcddd6df25226ea5f13dbc5cadec73072e1b370ae (diff)
downloadopenttd-58f1470129cc9adc4f41df6ef4068baa7e2cf04e.tar.xz
(svn r20104) -Fix: [Win32] The win32 MIDI driver might clip the start of a song.
Diffstat (limited to 'src/music')
-rw-r--r--src/music/win32_m.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/music/win32_m.cpp b/src/music/win32_m.cpp
index 51530487c..65ffbbc6b 100644
--- a/src/music/win32_m.cpp
+++ b/src/music/win32_m.cpp
@@ -79,7 +79,8 @@ static bool MidiIntPlaySong(const char *filename)
if (MidiSendCommand(_T("open \"%s\" type sequencer alias song"), buf) != 0) return false;
}
- return MidiSendCommand(_T("play song from 0")) == 0;
+ MidiSendCommand(_T("seek song to start wait"));
+ return MidiSendCommand(_T("play song")) == 0;
}
static void MidiIntStopSong()