@@ -27,24 +27,26 @@ public:
virtual void Stop() = 0;
virtual ~Driver() { }
enum Type {
DT_BEGIN = 0,
DT_SOUND = 0,
DT_MUSIC,
DT_VIDEO,
DT_END,
};
virtual const char *GetName() const = 0;
DECLARE_POSTFIX_INCREMENT(Driver::Type);
class DriverFactoryBase {
private:
Driver::Type type;
const char *name;
int priority;
typedef std::map<const char *, DriverFactoryBase *, StringCompare> Drivers;