music/null_m.c
author celestar
Sun, 31 Dec 2006 18:03:21 +0000
branchcustombridgeheads
changeset 5615 d6197e6c420e
parent 2189 d240b9097139
permissions -rw-r--r--
(svn r7705) [cbh] - Fix: Trains leave the bridge according to the trackbits that a present on the bridge head.
WARNING: zero-length bridges do not work yet
/* $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,
};