• 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
Trouble setting sub device list, with a private aggregate device
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trouble setting sub device list, with a private aggregate device


  • Subject: Trouble setting sub device list, with a private aggregate device
  • From: Neil Clayton <email@hidden>
  • Date: Tue, 11 Jul 2006 17:17:04 +1200

As I understand it (from reading previous posts) all I need to do in order to make an aggregate device private, is the following:

	NSMutableDictionary *newDictionary = [NSMutableDictionary new];
	[newDictionary setObject:@"iShowUMonitoring-Aggregate" forKey:@"uid"];
	[newDictionary setObject:@"iShowUMonitoring-Aggregate" forKey:@"name"];
	[newDictionary setObject:[NSNumber numberWithInt:1] forKey:@"private"];

Then, when the device is created, it's not made available to anything other than the process that created it - but otherwise it's the same device.
When private, the device appears to be created properly (I get the same deviceID back, as I would otherwise...).


When I try to set the Full Sub Device List, I get an error 560947818 from the AudioObjectSetPropertyData call.

The code that's performing the set is:
MTCoreAudioDevice *defaultOutput = [MTCoreAudioDevice defaultOutputDevice];

NSMutableArray *myDeviceList = [NSMutableArray new];
[myDeviceList addObject:[defaultOutput deviceUID]];
[myDeviceList addObject:[sourceDevice deviceUID]];

theAddress.mSelector = kAudioAggregateDevicePropertyFullSubDeviceList;
theAddress.mScope = kAudioObjectPropertyScopeGlobal;
theAddress.mElement = kAudioObjectPropertyElementMaster;
BAILSETERR( AudioObjectSetPropertyData(aggregate, &theAddress, 0, NULL, sizeof(CFArrayRef), &myDeviceList) );


This works find if the device is public.

Is there something else I'm missing or is this a bug?

Regards,
Neil Clayton

_______________________________________________
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: Trouble setting sub device list, with a private aggregate device
      • From: Jeff Moore <email@hidden>
  • Prev by Date: Using Aggregate Devices (created programatically) with an AUGraph
  • Next by Date: i have a firewire 410
  • Previous by thread: Re: Using Aggregate Devices (created programatically) with an AUGraph
  • Next by thread: Re: Trouble setting sub device list, with a private aggregate device
  • Index(es):
    • Date
    • Thread