(svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model.
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#undef Point
|
||||
#undef Rect
|
||||
|
||||
static FSoundDriver_Cocoa iFSoundDriver_Cocoa;
|
||||
|
||||
static AudioUnit _outputAudioUnit;
|
||||
|
||||
@@ -48,7 +49,7 @@ static OSStatus audioCallback(void *inRefCon, AudioUnitRenderActionFlags inActio
|
||||
}
|
||||
|
||||
|
||||
static const char *CocoaSoundStart(const char * const *parm)
|
||||
const char *SoundDriver_Cocoa::Start(const char * const *parm)
|
||||
{
|
||||
Component comp;
|
||||
ComponentDescription desc;
|
||||
@@ -116,7 +117,7 @@ static const char *CocoaSoundStart(const char * const *parm)
|
||||
}
|
||||
|
||||
|
||||
static void CocoaSoundStop()
|
||||
void SoundDriver_Cocoa::Stop()
|
||||
{
|
||||
struct AudioUnitInputCallback callback;
|
||||
|
||||
@@ -140,10 +141,4 @@ static void CocoaSoundStop()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const HalSoundDriver _cocoa_sound_driver = {
|
||||
CocoaSoundStart,
|
||||
CocoaSoundStop,
|
||||
};
|
||||
|
||||
#endif /* WITH_COCOA */
|
||||
|
Reference in New Issue
Block a user