summaryrefslogtreecommitdiff
path: root/src/music/bemidi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/bemidi.h')
-rw-r--r--src/music/bemidi.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/music/bemidi.h b/src/music/bemidi.h
index 1b280e667..b261ec59f 100644
--- a/src/music/bemidi.h
+++ b/src/music/bemidi.h
@@ -32,12 +32,10 @@ public:
};
/** Factory for the BeOS midi player. */
-class FMusicDriver_BeMidi: public MusicDriverFactory<FMusicDriver_BeMidi> {
+class FMusicDriver_BeMidi : public DriverFactoryBase {
public:
- static const int priority = 10;
- /* virtual */ const char *GetName() { return "bemidi"; }
- /* virtual */ const char *GetDescription() { return "BeOS MIDI Driver"; }
- /* virtual */ Driver *CreateInstance() { return new MusicDriver_BeMidi(); }
+ FMusicDriver_BeMidi() : DriverFactoryBase(Driver::DT_MUSIC, 10, "bemidi", "BeOS MIDI Driver") {}
+ /* virtual */ Driver *CreateInstance() const { return new MusicDriver_BeMidi(); }
};
#endif /* MUSIC_BEMIDI_H */