Some minor tidying of the OS X audio and wiimote code.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6736 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2011-01-04 02:09:29 +00:00
parent 58f5140233
commit efe555fc16
5 changed files with 12 additions and 17 deletions

View File

@ -47,9 +47,10 @@ CoreAudioSound::~CoreAudioSound()
bool CoreAudioSound::Start()
{
OSStatus err;
UInt32 enableIO;
AURenderCallbackStruct callback_struct;
AudioStreamBasicDescription format;
ComponentDescription desc;
UInt32 enableIO = 1;
desc.componentType = kAudioUnitType_Output;
desc.componentSubType = kAudioUnitSubType_DefaultOutput;
@ -69,7 +70,6 @@ bool CoreAudioSound::Start()
return false;
}
enableIO = 1;
AudioUnitSetProperty(audioUnit,
kAudioOutputUnitProperty_EnableIO,
kAudioUnitScope_Output, 0, &enableIO,

View File

@ -27,9 +27,6 @@
class CoreAudioSound : public SoundStream
{
#ifdef __APPLE__
ComponentDescription desc;
AudioUnit audioUnit;
public:
CoreAudioSound(CMixer *mixer);
virtual ~CoreAudioSound();
@ -49,6 +46,9 @@ public:
virtual void Update();
void RenderSamples(void *target, UInt32 size);
private:
AudioUnit audioUnit;
#else
public:
CoreAudioSound(CMixer *mixer) : SoundStream(mixer) {}