• 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
Re: Getting Default Output Device gives a strange answer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting Default Output Device gives a strange answer
      • From: Andrew Kimpton <email@hidden>
References: 
 >Getting Default Output Device gives a strange answer (From: Andrew Kimpton <email@hidden>)

  • Prev by Date: Re: kAudioOutputUnitProperty_IsRunning doesn't correspond to the audio device running
  • Next by Date: How to use lame?
  • Previous by thread: Getting Default Output Device gives a strange answer
  • Next by thread: Re: Getting Default Output Device gives a strange answer
  • Index(es):
    • Date
    • Thread