Re: Getting Default Output Device gives a strange answer
Re: Getting Default Output Device gives a strange answer
- Subject: Re: Getting Default Output Device gives a strange answer
- From: Doug Zwick <email@hidden>
- Date: Tue, 14 Nov 2006 11:55:06 -0700
Andrew Kimpton wrote:
UInt32 size;
AudioDeviceID outputDevice = -1;
OSStatus osErr = AudioHardwareGetProperty
(kAudioHardwarePropertyDefaultOuputDevice,
&size,
&outputDevice);
And I seem to have got my Intel Mac Mini 'wedged' such that the
above code returns noErr but gives
zero for the outputDevice - even though HALLab tells me that the ID
is 0x104
Is there any other way to get the device ID of the default output
device ? Is there some initialization step
I've missed somewhere ?
Isn't size an in/out parameter? Your code snipped fails to initialize
it to sizeof(outputDevice).
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden