aboutsummaryrefslogtreecommitdiff
path: root/sound/mididrv.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-02 14:47:17 +0000
committerJames Brown2002-05-02 14:47:17 +0000
commit31fa7f6172422a3a838e3f16336edb06429f8fc5 (patch)
treeeda29a0c01fd885cd1611be38f25b2d760613d2f /sound/mididrv.cpp
parentcfd1ca5fe189236177441648c06049a214bd0fd1 (diff)
downloadscummvm-rg350-31fa7f6172422a3a838e3f16336edb06429f8fc5.tar.gz
scummvm-rg350-31fa7f6172422a3a838e3f16336edb06429f8fc5.tar.bz2
scummvm-rg350-31fa7f6172422a3a838e3f16336edb06429f8fc5.zip
Change default tempos.
svn-id: r4172
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r--sound/mididrv.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index 3623f34040..2400248fae 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -219,9 +219,21 @@ void MidiDriver_WIN::close() {
}
void MidiDriver_WIN::send(uint32 b) {
+ union {
+ DWORD dwData;
+ BYTE bData[4];
+ } u;
+
if (_mode != MO_SIMPLE)
error("MidiDriver_WIN:send called but driver is not in simple mode");
- check_error(midiOutShortMsg(_mo, b));
+
+ u.bData[3] = (byte)((b & 0xFF000000) >> 24);
+ u.bData[2] = (byte)((b & 0x00FF0000) >> 16);
+ u.bData[1] = (byte)((b & 0x0000FF00) >> 8);
+ u.bData[0] = (byte)(b & 0x000000FF);
+
+ //printMidi(u.bData[0], u.bData[1], u.bData[2], u.bData[3]);
+ check_error(midiOutShortMsg(_mo, u.dwData));
}
void MidiDriver_WIN::pause(bool pause) {