# sound_driver.hpp

Go to the documentation of this file.

    00001 /* $Id: sound_driver.hpp 14907 2009-01-08 11:06:07Z peter1138 $ */
    00002
    00005 #ifndef SOUND_SOUND_DRIVER_HPP
    00006 #define SOUND_SOUND_DRIVER_HPP
    00007
    00008 #include "../driver.h"
    00009
    00010 class SoundDriver: public Driver {
    00011 public:
    00012   /* Called once every tick */
    00013   virtual void MainLoop() {}
    00014 };
    00015
    00016 class SoundDriverFactoryBase: public DriverFactoryBase {
    00017 };
    00018
    00019 template <class T>
    00020 class SoundDriverFactory: public SoundDriverFactoryBase {
    00021 public:
    00022   SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); }
    00023
    00027   const char *GetName();
    00028 };
    00029
    00030 extern SoundDriver *_sound_driver;
    00031 extern char *_ini_sounddriver;
    00032
    00033 #endif /* SOUND_SOUND_DRIVER_HPP */