• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting Default Output Device gives a strange answer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Getting Default Output Device gives a strange answer
      • From: Jeff Moore <email@hidden>
    • Re: Getting Default Output Device gives a strange answer
      • From: "Eric Muehlhausen" <email@hidden>
  • Prev by Date: Re: AUGraph and render callbacks
  • Next by Date: Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
  • Previous by thread: Re: AUGraph and render callbacks
  • Next by thread: Re: Getting Default Output Device gives a strange answer
  • Index(es):
    • Date
    • Thread