src/sound/sound_driver.hpp
author peter1138
Sat, 07 Jul 2007 20:31:23 +0000
changeset 7193 d46cbf314baf
parent 7170 923946ec324f
child 8275 f17d0c863ee3
permissions -rw-r--r--
(svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first
/* $Id$ */

#ifndef SOUND_SOUND_DRIVER_HPP
#define SOUND_SOUND_DRIVER_HPP

#include "../driver.h"

class SoundDriver: public Driver {
};

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;

#endif /* SOUND_SOUND_DRIVER_HPP */