diff options
author | rubidium <rubidium@openttd.org> | 2009-09-05 21:26:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-05 21:26:51 +0000 |
commit | bc5241600a33f7271a839105c4752ad24f202c1c (patch) | |
tree | 57ec42b3a8b93498e79f3fdc26ca3e10febdaee7 /src/music | |
parent | 0be5e5935560de419283540ea6280acdff3dea9c (diff) | |
download | openttd-bc5241600a33f7271a839105c4752ad24f202c1c.tar.xz |
(svn r17428) -Codechange: add a function to get the name of a driver
Diffstat (limited to 'src/music')
-rw-r--r-- | src/music/allegro_m.h | 1 | ||||
-rw-r--r-- | src/music/bemidi.h | 1 | ||||
-rw-r--r-- | src/music/dmusic.h | 1 | ||||
-rw-r--r-- | src/music/extmidi.h | 1 | ||||
-rw-r--r-- | src/music/libtimidity.h | 1 | ||||
-rw-r--r-- | src/music/null_m.h | 1 | ||||
-rw-r--r-- | src/music/os2_m.h | 1 | ||||
-rw-r--r-- | src/music/qtmidi.h | 1 | ||||
-rw-r--r-- | src/music/win32_m.h | 1 |
9 files changed, 9 insertions, 0 deletions
diff --git a/src/music/allegro_m.h b/src/music/allegro_m.h index 80de33018..bc4d665db 100644 --- a/src/music/allegro_m.h +++ b/src/music/allegro_m.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "allegro"; } }; class FMusicDriver_Allegro: public MusicDriverFactory<FMusicDriver_Allegro> { diff --git a/src/music/bemidi.h b/src/music/bemidi.h index 42b0d1ba9..07b275f95 100644 --- a/src/music/bemidi.h +++ b/src/music/bemidi.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "bemidi"; } }; class FMusicDriver_BeMidi: public MusicDriverFactory<FMusicDriver_BeMidi> { diff --git a/src/music/dmusic.h b/src/music/dmusic.h index 77ba15771..74368de23 100644 --- a/src/music/dmusic.h +++ b/src/music/dmusic.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "dmusic"; } }; class FMusicDriver_DMusic: public MusicDriverFactory<FMusicDriver_DMusic> { diff --git a/src/music/extmidi.h b/src/music/extmidi.h index b3df9eaea..260dbdeb8 100644 --- a/src/music/extmidi.h +++ b/src/music/extmidi.h @@ -35,6 +35,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "extmidi"; } }; class FMusicDriver_ExtMidi: public MusicDriverFactory<FMusicDriver_ExtMidi> { diff --git a/src/music/libtimidity.h b/src/music/libtimidity.h index fd7163eaa..7839462dd 100644 --- a/src/music/libtimidity.h +++ b/src/music/libtimidity.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "libtimidity"; } }; class FMusicDriver_LibTimidity: public MusicDriverFactory<FMusicDriver_LibTimidity> { diff --git a/src/music/null_m.h b/src/music/null_m.h index 8c1a7a558..a98cdf679 100644 --- a/src/music/null_m.h +++ b/src/music/null_m.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying() { return true; } /* virtual */ void SetVolume(byte vol) { } + /* virtual */ const char *GetName() const { return "null"; } }; class FMusicDriver_Null: public MusicDriverFactory<FMusicDriver_Null> { diff --git a/src/music/os2_m.h b/src/music/os2_m.h index 8337c3f0b..87c45873c 100644 --- a/src/music/os2_m.h +++ b/src/music/os2_m.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "os2"; } }; class FMusicDriver_OS2: public MusicDriverFactory<FMusicDriver_OS2> { diff --git a/src/music/qtmidi.h b/src/music/qtmidi.h index 904ff527b..8ad7c4762 100644 --- a/src/music/qtmidi.h +++ b/src/music/qtmidi.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "qt"; } }; class FMusicDriver_QtMidi: public MusicDriverFactory<FMusicDriver_QtMidi> { diff --git a/src/music/win32_m.h b/src/music/win32_m.h index ba1d2d643..d596d3a9f 100644 --- a/src/music/win32_m.h +++ b/src/music/win32_m.h @@ -27,6 +27,7 @@ public: /* virtual */ bool IsSongPlaying(); /* virtual */ void SetVolume(byte vol); + /* virtual */ const char *GetName() const { return "win32"; } }; class FMusicDriver_Win32: public MusicDriverFactory<FMusicDriver_Win32> { |