src/sound/sound_driver.hpp
author skidd13
Sun, 15 Jun 2008 22:10:22 +0000
changeset 9528 b4e46d96ee04
parent 9111 48ce04029fe4
child 10380 f4adb9648a93
permissions -rw-r--r--
(svn r13524) -Codechange: use the typesafe QSort for vehicle sortings
-Prepare: vehicles sorting for convsersion to GUIList
/* $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 {
};

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 */