diff options
author | peter1138 <peter1138@openttd.org> | 2007-07-05 12:23:54 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-07-05 12:23:54 +0000 |
commit | 5e85e8c5e03105e43cf9f2216e993c0596d7dfec (patch) | |
tree | 52e0cc5b1e4eb6cf9aed8556873ee6833662e11f /src/music/null_m.cpp | |
parent | 7884a07b43fd293a2ca5b39b64df98b700959874 (diff) | |
download | openttd-5e85e8c5e03105e43cf9f2216e993c0596d7dfec.tar.xz |
(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
Diffstat (limited to 'src/music/null_m.cpp')
-rw-r--r-- | src/music/null_m.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/music/null_m.cpp b/src/music/null_m.cpp index 01f7a401e..063ad2e10 100644 --- a/src/music/null_m.cpp +++ b/src/music/null_m.cpp @@ -3,18 +3,5 @@ #include "../stdafx.h" #include "null_m.h" -static const char* NullMidiStart(const char* const* parm) { return NULL; } -static void NullMidiStop() {} -static void NullMidiPlaySong(const char *filename) {} -static void NullMidiStopSong() {} -static bool NullMidiIsSongPlaying() { return true; } -static void NullMidiSetVolume(byte vol) {} +static FMusicDriver_Null iFMusicDriver_Null; -const HalMusicDriver _null_music_driver = { - NullMidiStart, - NullMidiStop, - NullMidiPlaySong, - NullMidiStopSong, - NullMidiIsSongPlaying, - NullMidiSetVolume, -}; |