2005-07-24 14:12:37 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file null_s.h Base for the sound of silence. */
|
|
|
|
|
2005-07-23 15:16:57 +00:00
|
|
|
#ifndef SOUND_NULL_H
|
|
|
|
#define SOUND_NULL_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "sound_driver.hpp"
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
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:
|
2007-07-07 20:31:23 +00:00
|
|
|
static const int priority = 0;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "null"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "Null Sound Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); }
|
|
|
|
};
|
2005-07-23 15:16:57 +00:00
|
|
|
|
2007-02-12 21:55:10 +00:00
|
|
|
#endif /* SOUND_NULL_H */
|