summaryrefslogtreecommitdiff
path: root/src/music/allegro_m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/allegro_m.cpp')
-rw-r--r--src/music/allegro_m.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/music/allegro_m.cpp b/src/music/allegro_m.cpp
index 77b488186..fee5bf8a0 100644
--- a/src/music/allegro_m.cpp
+++ b/src/music/allegro_m.cpp
@@ -58,10 +58,12 @@ void MusicDriver_Allegro::Stop()
if (--_allegro_instance_count == 0) allegro_exit();
}
-void MusicDriver_Allegro::PlaySong(const char *filename)
+void MusicDriver_Allegro::PlaySong(const MusicSongInfo &song)
{
+ if (song.filetype != MTT_STANDARDMIDI) return;
+
if (_midi != NULL) destroy_midi(_midi);
- _midi = load_midi(filename);
+ _midi = load_midi(song.filename);
play_midi(_midi, false);
}