diff options
author | Simon Howard | 2013-06-19 20:50:09 +0000 |
---|---|---|
committer | Simon Howard | 2013-06-19 20:50:09 +0000 |
commit | 431b79530bea2f5666e0ca362773160ab7274f5d (patch) | |
tree | 7875b9ded180708aa7bc4819df8b986d6a41b280 /src/midifile.c | |
parent | 0fea3b6cd1c5e80aaed4a045d11025db34a83d7f (diff) | |
download | chocolate-doom-431b79530bea2f5666e0ca362773160ab7274f5d.tar.gz chocolate-doom-431b79530bea2f5666e0ca362773160ab7274f5d.tar.bz2 chocolate-doom-431b79530bea2f5666e0ca362773160ab7274f5d.zip |
Fix OPL MIDI playback on big endian systems (thanks GhostlyDeath).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2607
Diffstat (limited to 'src/midifile.c')
-rw-r--r-- | src/midifile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/midifile.c b/src/midifile.c index bd935ca1..fcb50848 100644 --- a/src/midifile.c +++ b/src/midifile.c @@ -697,7 +697,7 @@ int MIDI_GetNextEvent(midi_track_iter_t *iter, midi_event_t **event) unsigned int MIDI_GetFileTimeDivision(midi_file_t *file) { - return file->header.time_division; + return SHORT(file->header.time_division); } void MIDI_RestartIterator(midi_track_iter_t *iter) |