summaryrefslogtreecommitdiff
path: root/src/sound/cocoa_s.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound/cocoa_s.h')
-rw-r--r--src/sound/cocoa_s.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/sound/cocoa_s.h b/src/sound/cocoa_s.h
index 7492164c5..a85748bc2 100644
--- a/src/sound/cocoa_s.h
+++ b/src/sound/cocoa_s.h
@@ -22,12 +22,10 @@ public:
/* virtual */ const char *GetName() const { return "cocoa"; }
};
-class FSoundDriver_Cocoa: public SoundDriverFactory<FSoundDriver_Cocoa> {
+class FSoundDriver_Cocoa : public DriverFactoryBase {
public:
- static const int priority = 10;
- /* virtual */ const char *GetName() { return "cocoa"; }
- /* virtual */ const char *GetDescription() { return "Cocoa Sound Driver"; }
- /* virtual */ Driver *CreateInstance() { return new SoundDriver_Cocoa(); }
+ FSoundDriver_Cocoa() : DriverFactoryBase(Driver::DT_SOUND, 10, "cocoa", "Cocoa Sound Driver") {}
+ /* virtual */ Driver *CreateInstance() const { return new SoundDriver_Cocoa(); }
};
#endif /* SOUND_COCOA_H */