2005-12-11 10:25:27 +00:00
|
|
|
/* $Id$ */
|
2005-12-10 11:16:45 +00:00
|
|
|
|
2008-05-06 15:11:33 +00:00
|
|
|
/** @file cocoa_s.h Base for Cocoa sound handling. */
|
|
|
|
|
2005-12-10 11:16:45 +00:00
|
|
|
#ifndef SOUND_COCOA_H
|
|
|
|
#define SOUND_COCOA_H
|
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
#include "sound_driver.hpp"
|
2005-12-10 11:16:45 +00:00
|
|
|
|
2007-07-05 12:23:54 +00:00
|
|
|
class SoundDriver_Cocoa: public SoundDriver {
|
|
|
|
public:
|
|
|
|
/* virtual */ const char *Start(const char * const *param);
|
|
|
|
|
|
|
|
/* virtual */ void Stop();
|
|
|
|
};
|
|
|
|
|
|
|
|
class FSoundDriver_Cocoa: public SoundDriverFactory<FSoundDriver_Cocoa> {
|
|
|
|
public:
|
2007-07-07 20:31:23 +00:00
|
|
|
static const int priority = 10;
|
2007-07-05 12:23:54 +00:00
|
|
|
/* virtual */ const char *GetName() { return "cocoa"; }
|
|
|
|
/* virtual */ const char *GetDescription() { return "Cocoa Sound Driver"; }
|
|
|
|
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Cocoa(); }
|
|
|
|
};
|
2005-12-10 11:16:45 +00:00
|
|
|
|
2007-02-23 12:56:10 +00:00
|
|
|
#endif /* SOUND_COCOA_H */
|