Re: Strange error when dynamically creating aggregate devices
Re: Strange error when dynamically creating aggregate devices
- Subject: Re: Strange error when dynamically creating aggregate devices
- From: Jeff Moore <email@hidden>
- Date: Fri, 02 Apr 2010 00:37:23 -0700
Is the problem coming when Jack is building an aggregate device or is this when someone is trying to create an aggregate device with the Jack device in it (which wouldn't be supported anyway since only IOAudio-based devices can be aggregated)?
At any rate, it's hard to tell from this snippet of code what might be amiss here. One thing that springs to mind is that a process has to be owned by a user with admin rights to create a public aggregate device.
On Apr 2, 2010, at 12:23 AM, Stéphane Letz wrote:
> We get a bug report on the following machine:
>
> Macbook Pro Unibody, 2.8GHZ;
> RAM: 4G
> OSX 10.6.2
>
> when creating an aggregate device with "built in mic" and "built in output"
>
> After creating the new aggregate device, it is filled up with the input/output device with the following code :
>
> pluginAOPA.mSelector = kAudioAggregateDevicePropertyFullSubDeviceList;
> pluginAOPA.mScope = kAudioObjectPropertyScopeGlobal;
> pluginAOPA.mElement = kAudioObjectPropertyElementMaster;
> outDataSize = sizeof(CFMutableArrayRef);
> osErr = AudioObjectSetPropertyData(*outAggregateDevice, &pluginAOPA, 0, NULL, outDataSize, &subDevicesArray);
> if (osErr != noErr) {
> jack_error("JackCoreAudioDriver::CreateAggregateDevice : AudioObjectSetPropertyData for sub-device list error");
> printError(osErr);
> goto error;
> }
>
> And we get the "kAudioHardwareBadObjectError" error.
>
> This is the only case we got up to now.
>
> Any idea on what could be the reason?
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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