2005-12-11 11:25:27 +01:00
|
|
|
/* $Id$ */
|
2005-12-10 12:16:45 +01:00
|
|
|
|
2008-05-06 17:11:33 +02:00
|
|
|
/** @file cocoa_s.h Base for Cocoa sound handling. */
|
|
|
|
|
2005-12-10 12:16:45 +01:00
|
|
|
#ifndef SOUND_COCOA_H
|
|
|
|
#define SOUND_COCOA_H
|
|
|
|
|
2007-07-05 14:23:54 +02:00
|
|
|
#include "sound_driver.hpp"
|
2005-12-10 12:16:45 +01:00
|
|
|
|
2007-07-05 14:23:54 +02: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 22:31:23 +02:00
|
|
|
static const int priority = 10;
|
2007-07-05 14:23:54 +02: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 12:16:45 +01:00
|
|
|
|
2007-02-23 13:56:10 +01:00
|
|
|
#endif /* SOUND_COCOA_H */
|