src/sound/null_s.h
author truelight
Fri, 13 Jul 2007 09:18:50 +0000
branchnoai
changeset 9641 855e32c08c9b
parent 9631 8a2d1c2ceb88
child 10429 1b99254f9607
permissions -rw-r--r--
(svn r10533) [NoAI] -Sync with trunk r10460:r10532.
/* $Id$ */

#ifndef SOUND_NULL_H
#define SOUND_NULL_H

#include "sound_driver.hpp"

class SoundDriver_Null: public SoundDriver {
public:
	/* virtual */ const char *Start(const char * const *param) { return NULL; }

	/* virtual */ void Stop() { }
};

class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
public:
	static const int priority = 0;
	/* virtual */ const char *GetName() { return "null"; }
	/* virtual */ const char *GetDescription() { return "Null Sound Driver"; }
	/* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); }
};

#endif /* SOUND_NULL_H */