summaryrefslogtreecommitdiff
path: root/src/music/cocoa_m.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/cocoa_m.h')
-rw-r--r--src/music/cocoa_m.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/music/cocoa_m.h b/src/music/cocoa_m.h
index f3cff9db8..00bdc6b62 100644
--- a/src/music/cocoa_m.h
+++ b/src/music/cocoa_m.h
@@ -30,12 +30,10 @@ public:
/* virtual */ const char *GetName() const { return "cocoa"; }
};
-class FMusicDriver_Cocoa: public MusicDriverFactory<FMusicDriver_Cocoa> {
+class FMusicDriver_Cocoa : public DriverFactoryBase {
public:
- static const int priority = 10;
- /* virtual */ const char *GetName() { return "cocoa"; }
- /* virtual */ const char *GetDescription() { return "Cocoa MIDI Driver"; }
- /* virtual */ Driver *CreateInstance() { return new MusicDriver_Cocoa(); }
+ FMusicDriver_Cocoa() : DriverFactoryBase(Driver::DT_MUSIC, 10, "cocoa", "Cocoa MIDI Driver") {}
+ /* virtual */ Driver *CreateInstance() const { return new MusicDriver_Cocoa(); }
};
#endif /* MUSIC_MACOSX_COCOA_H */