summaryrefslogtreecommitdiff
path: root/src/music/null_m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/null_m.cpp')
-rw-r--r--src/music/null_m.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/music/null_m.cpp b/src/music/null_m.cpp
new file mode 100644
index 000000000..c76a60211
--- /dev/null
+++ b/src/music/null_m.cpp
@@ -0,0 +1,21 @@
+/* $Id$ */
+
+#include "../stdafx.h"
+#include "../openttd.h"
+#include "null_m.h"
+
+static const char* NullMidiStart(const char* const* parm) { return NULL; }
+static void NullMidiStop(void) {}
+static void NullMidiPlaySong(const char *filename) {}
+static void NullMidiStopSong(void) {}
+static bool NullMidiIsSongPlaying(void) { return true; }
+static void NullMidiSetVolume(byte vol) {}
+
+const HalMusicDriver _null_music_driver = {
+ NullMidiStart,
+ NullMidiStop,
+ NullMidiPlaySong,
+ NullMidiStopSong,
+ NullMidiIsSongPlaying,
+ NullMidiSetVolume,
+};