diff options
Diffstat (limited to 'src/sound/allegro_s.h')
-rw-r--r-- | src/sound/allegro_s.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sound/allegro_s.h b/src/sound/allegro_s.h index 315bad2a8..269a1a030 100644 --- a/src/sound/allegro_s.h +++ b/src/sound/allegro_s.h @@ -26,12 +26,10 @@ public: }; /** Factory for the allegro sound driver. */ -class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> { +class FSoundDriver_Allegro : public DriverFactoryBase { public: - static const int priority = 4; - /* virtual */ const char *GetName() { return "allegro"; } - /* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; } - /* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); } + FSoundDriver_Allegro() : DriverFactoryBase(Driver::DT_SOUND, 4, "allegro", "Allegro Sound Driver") {} + /* virtual */ Driver *CreateInstance() const { return new SoundDriver_Allegro(); } }; #endif /* SOUND_ALLEGRO_H */ |