Codechange: Pass a MusicSongInfo struct instead of bare filename to music drivers.
Preparation for later extending the info passed to music drivers.
This commit is contained in:
committed by
Michael Lutz
parent
1c2d29e1a3
commit
f946b3da56
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user