Re: Trouble setting sub device list, with a private aggregate device
Re: Trouble setting sub device list, with a private aggregate device
- Subject: Re: Trouble setting sub device list, with a private aggregate device
- From: Jeff Moore <email@hidden>
- Date: Tue, 11 Jul 2006 14:43:07 -0700
Private aggregates go away when the process that created them dies or
when they are explicitly deleted. There aren't any other ways to get
rid of them.
On Jul 11, 2006, at 2:32 PM, Neil Clayton wrote:
OK, that seems to make sense. Thanks.
I added some code directly after the creation to enumerate all the
devices. Sure enough, when I do the same thing before the method
that's failing, the device isn't there. It's as though upon
returning to the app's main run loop, it's disappeared.
When created automatically, what causes an aggregate to be
removed? Is there some property I have to set in order for it to
become persistent (for longer)?
Neil
On 12/07/2006, at 6:20 AM, Jeff Moore wrote:
HAL error codes are easier to read if you look at them as 4CCs. In
this case, 560947818 == '!obj' == kAudioHardwareBadObjectError.
This error is only ever returned when the AudioObjectID you pass
to an API call is invalid.
On Jul 10, 2006, at 10:17 PM, Neil Clayton wrote:
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"];
--
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