summaryrefslogtreecommitdiff
path: root/src/midifile.c
diff options
context:
space:
mode:
authorSimon Howard2013-06-19 20:50:09 +0000
committerSimon Howard2013-06-19 20:50:09 +0000
commit431b79530bea2f5666e0ca362773160ab7274f5d (patch)
tree7875b9ded180708aa7bc4819df8b986d6a41b280 /src/midifile.c
parent0fea3b6cd1c5e80aaed4a045d11025db34a83d7f (diff)
downloadchocolate-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.c2
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)