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: "Eric Muehlhausen" <email@hidden>
- Date: Mon, 13 Nov 2006 22:12:51 -0800
Could just be a copy/paste error, but kAudioHardwarePropertyDefaultOutputDevice is misspelled in your code snippet:
OSStatus osErr = AudioHardwareGetProperty(kAudioHardwarePropertyDefaultOuputDevice,
&size,
&outputDevice);
On 11/13/06, Andrew Kimpton <email@hidden> wrote:
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 (
This email sent to email@hidden
_______________________________________________
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