diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-03-17 14:51:30 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-06-05 22:58:35 +0200 |
commit | f946b3da56b22c1fc32a9ffc9008374e4fb4f8c8 (patch) | |
tree | 3d8b2b0cf0e3931d2e38cce4b822f5b082d0cb92 /src/music/music_driver.hpp | |
parent | 1c2d29e1a3b5afdf3933f4cc743dda35c3ebb5fb (diff) | |
download | openttd-f946b3da56b22c1fc32a9ffc9008374e4fb4f8c8.tar.xz |
Codechange: Pass a MusicSongInfo struct instead of bare filename to music drivers.
Preparation for later extending the info passed to music drivers.
Diffstat (limited to 'src/music/music_driver.hpp')
-rw-r--r-- | src/music/music_driver.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/music/music_driver.hpp b/src/music/music_driver.hpp index be09d3ea2..10a99d275 100644 --- a/src/music/music_driver.hpp +++ b/src/music/music_driver.hpp @@ -14,6 +14,8 @@ #include "../driver.h" +struct MusicSongInfo; + /** Driver for all music playback. */ class MusicDriver : public Driver { public: @@ -21,7 +23,7 @@ public: * Play a particular song. * @param filename The name of file with the song to play. */ - virtual void PlaySong(const char *filename) = 0; + virtual void PlaySong(const MusicSongInfo &song) = 0; /** * Stop playing the current song. |