• 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: 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


  • Prev by Date: Re: record mp3 file
  • Next by Date: Re: Getting Default Output Device gives a strange answer
  • Previous by thread: Re: Getting Default Output Device gives a strange answer
  • Next by thread: How to use lame?
  • Index(es):
    • Date
    • Thread