# null_s.h

Go to the documentation of this file.

    00001 /* $Id: null_s.h 17987 2009-11-06 22:53:21Z rubidium $ */
    00002
    00005 #ifndef SOUND_NULL_H
    00006 #define SOUND_NULL_H
    00007
    00008 #include "sound_driver.hpp"
    00009
    00010 class SoundDriver_Null: public SoundDriver {
    00011 public:
    00012   /* virtual */ const char *Start(const char * const *param) { return NULL; }
    00013
    00014   /* virtual */ void Stop() { }
    00015 };
    00016
    00017 class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
    00018 public:
    00019   static const int priority = 1;
    00020   /* virtual */ const char *GetName() { return "null"; }
    00021   /* virtual */ const char *GetDescription() { return "Null Sound Driver"; }
    00022   /* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); }
    00023 };
    00024
    00025 #endif /* SOUND_NULL_H */