diff options
author | Paweł Kołodziejski | 2003-11-08 23:05:04 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-11-08 23:05:04 +0000 |
commit | 1f99fbe77c50b85afe124028be380d8b78bb6b61 (patch) | |
tree | 20868f8cea18714b4c8742373b66bce56d2e8fdf /sound/midiparser_xmidi.cpp | |
parent | 13c7acee9d57cc5d3134c9f5be0f7cb2614c33e7 (diff) | |
download | scummvm-rg350-1f99fbe77c50b85afe124028be380d8b78bb6b61.tar.gz scummvm-rg350-1f99fbe77c50b85afe124028be380d8b78bb6b61.tar.bz2 scummvm-rg350-1f99fbe77c50b85afe124028be380d8b78bb6b61.zip |
cleanup whitespaces
svn-id: r11221
Diffstat (limited to 'sound/midiparser_xmidi.cpp')
-rw-r--r-- | sound/midiparser_xmidi.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/midiparser_xmidi.cpp b/sound/midiparser_xmidi.cpp index 8b4a194aa0..f73a07c1ef 100644 --- a/sound/midiparser_xmidi.cpp +++ b/sound/midiparser_xmidi.cpp @@ -144,7 +144,7 @@ bool MidiParser_XMIDI::loadMusic (byte *data, uint32 size) { // Read length of len = read4high (pos); start = pos; - + // XDIRless XMIDI, we can handle them here. if (!memcmp (pos, "XMID", 4)) { printf ("Warning: XMIDI doesn't have XDIR\n"); @@ -166,11 +166,11 @@ bool MidiParser_XMIDI::loadMusic (byte *data, uint32 size) { // Read length of chunk chunk_len = read4high (pos); - + // Add eight bytes i += 8; - - if (memcmp (buf, "INFO", 4)) { + + if (memcmp (buf, "INFO", 4)) { // Must align pos += (chunk_len + 1) & ~1; i += (chunk_len + 1) & ~1; @@ -182,7 +182,7 @@ bool MidiParser_XMIDI::loadMusic (byte *data, uint32 size) { printf ("Invalid chunk length %d for 'INFO' block!\n", (int) chunk_len); return false; } - + _num_tracks = (byte) read2low (pos); if (chunk_len > 2) { @@ -197,21 +197,21 @@ bool MidiParser_XMIDI::loadMusic (byte *data, uint32 size) { printf ("Didn't find a valid track count\n"); return false; } - + // Ok now to start part 2 // Goto the right place pos = start + ((len + 1) & ~1); - + if (memcmp (pos, "CAT ", 4)) { // Not an XMID printf ("Expected 'CAT ' but found '%c%c%c%c'\n", pos[0], pos[1], pos[2], pos[3]); return false; } pos += 4; - + // Now read length of this track len = read4high (pos); - + if (memcmp (pos, "XMID", 4)) { // Not an XMID printf ("Expected 'XMID' but found '%c%c%c%c'\n", pos[0], pos[1], pos[2], pos[3]); |