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,