• 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: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?


  • Subject: Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?
  • From: Dan <email@hidden>
  • Date: Wed, 9 Jul 2008 16:39:14 +0100

2008/7/8 Jeff Moore <email@hidden>:
>
> On Jul 8, 2008, at 2:32 AM, Dan Stowell wrote:
>
>> 2008/7/7 Jeff Moore <email@hidden>:
>>> - You say that it works fine in the case where you are using two separate
>>> processes, but you get the problem when you are using a single process.
>>> Can
>>> you elaborate on what the differences are between the environments?
>>
>> I wish I could pin down the relevant differences for you.
>
> Not to belabor the obvious, but something has to be different. Given
> everything I've heard so far, figuring this out seems to me to be the most
> important thing you can do to learn about this problem. There's not much
> more I can do for you until you nail this down I think.

Absolutely.


>> OK, thanks. I added the following to the above code, at the point
>> marked "point at which to add the delay":
>>
>>
>> CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0.1, false);
>> address.mSelector = kAudioHardwarePropertyDeviceForUID;
>> err = AudioObjectGetPropertyData(coreaudioPlugin, &address,
>>      sizeof(CFStringRef), CFSTR("SCAggregate"), &aggregateSize,
>> &aggregateID);
>> if (err != kAudioHardwareNoError)
>> {
>>        scprintf("get kAudioHardwarePropertyDeviceForUID error %s\n",
>> (char*)&err);
>>        return false;
>> }
>>
>>
>> It results in the following error in all configurations:
>>
>>  get kAudioHardwarePropertyDeviceForUID error ?ohw
>> so I guess I'm doing something wrong...? Thanks for any further advice.
>
> As it's name implies, kAudioHardwarePropertyDeviceForUID is a property of
> the system object, not the plug-in object. That's why you are getting the
> error here.

Thanks. Sorry to be dense, but I used "kAudioObjectSystemObject"
instead of "coreaudioPlugin" in the above and it must not be right
because it doesn't work - produces error "zis!". Does it need to be
written differently than:

 err = AudioObjectGetPropertyData(kAudioObjectSystemObject, &address,
                 sizeof(CFStringRef), CFSTR("SCAggregate"),
&aggregateSize, &aggregateID);


Thanks,
Dan
 _______________________________________________
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

References: 
 >Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation? (From: Dan <email@hidden>)
 >Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation? (From: Jeff Moore <email@hidden>)
 >Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation? (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: How to Control App Crashing
  • Next by Date: Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?
  • Previous by thread: Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?
  • Next by thread: Re: Programmatic Aggregate Device issue on Intel Mac, not always completing initialisation?
  • Index(es):
    • Date
    • Thread