• 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
kAudioHardwarePropertyDeviceForUID ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kAudioHardwarePropertyDeviceForUID ???


  • Subject: kAudioHardwarePropertyDeviceForUID ???
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Thu, 19 Sep 2002 21:03:44 -0400

Hi Folks,

I have been using the kAudioHardwarePropertyDeviceForUID AudioHardware
property to get the current audio device for a saved GUID reference. I am
absolutely sure that the device exists in the system and is unique. I use
the following code:

AudioValueTranslation avt = {&audioGUID,
sizeof(audioGUID),
&fAudioDevice,
sizeof(fAudioDevice)};
UInt32 avt_len = sizeof(avt);
char guidbuf[256];
OSStatus result =
AudioHardwareGetProperty(kAudioHardwarePropertyDeviceForUID,
&avt_len, &avt);


I find that the first time I do this in a run of my app, it works fine. If I
make the device go away and come back I find that the call completes with no
error but the AudioDeviceID I receive is garbage. For example:

result = 0
fAudioDevice = 79

But the actual device id for the GUID I am trying to get is 46.

So, is there some lifetime thing that I am missing here or is this a genuine
bug.

I have also submitted this as Radar #3056119

Best regards,


B.J. Buchalter

Metric Halo
M/S 601 - Building 8
Castle Point Campus
Castle Point, NY 12511-0601 USA
tel +1 845 831-8600
fax +1 603 250-2451

If you haven't heard ChannelStrip yet, you don't know what you're missing!

Check out SpectraFoo, ChannelStrip and Mobile I/O at http://www.mhlabs.com/

Download a 12 day demo from <http://www.mhlabs.com/demo/>
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: kAudioHardwarePropertyDeviceForUID ???
      • From: Baron <email@hidden>
  • Prev by Date: Re: how to tell if you can change a data source under program control
  • Next by Date: Re: how to tell if you can change a data source under program control
  • Previous by thread: Re: how to tell if you can change a data source under program control
  • Next by thread: Re: kAudioHardwarePropertyDeviceForUID ???
  • Index(es):
    • Date
    • Thread