Getting Default Output Device gives a strange answer
Getting Default Output Device gives a strange answer
- Subject: Getting Default Output Device gives a strange answer
- From: Andrew Kimpton <email@hidden>
- Date: Mon, 13 Nov 2006 22:29:41 -0500
I have :
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 ?
Full disclosure - I have been playing with hog mode to grab the optical output (ie the default output) so
I can send AC-3 data to an attached decoder, and I probably aborted the app without releasing hog mode.
However HALLab seems pretty happy, and thinks the Hog mode 'id' is -1 which I take to mean no-one is
hogging things right now.
Andrew 8-)
_______________________________________________
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