Files
@ r10583:9aad29357166
Branch filter:
Location: cpp/openttd-patchpack/source/src/sound/sound_driver.hpp - annotation
r10583:9aad29357166
728 B
text/x-c++hdr
(svn r14846) -Doc: strgen hasn't been part of the trunk/release binaries for quite a while, so point to the precompiled strgen package instead.
r7170:38b143754b40 r7170:38b143754b40 r9111:983de9c5a848 r9111:983de9c5a848 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r10380:906a7d946ffe r10380:906a7d946ffe r10380:906a7d946ffe r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7193:2cae66b95848 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r7170:38b143754b40 r8275:5932486ddd21 r7170:38b143754b40 r7170:38b143754b40 | /* $Id$ */
/** @file sound_driver.hpp Base for all sound drivers. */
#ifndef SOUND_SOUND_DRIVER_HPP
#define SOUND_SOUND_DRIVER_HPP
#include "../driver.h"
class SoundDriver: public Driver {
public:
/* Called once every tick */
virtual void MainLoop() {}
};
class SoundDriverFactoryBase: public DriverFactoryBase {
};
template <class T>
class SoundDriverFactory: public SoundDriverFactoryBase {
public:
SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.
*/
const char *GetName();
};
extern SoundDriver *_sound_driver;
extern char _ini_sounddriver[32];
#endif /* SOUND_SOUND_DRIVER_HPP */
|