Re: Race condition in aggregate device?
Re: Race condition in aggregate device?
- Subject: Re: Race condition in aggregate device?
- From: "Christoph Teschner" <email@hidden>
- Date: Wed, 24 May 2006 21:24:54 +0200
the aggregate device is always showing up in the device list and it is never
missing sub-devices.
however, it appears that in 40% of all my test cases (without any
modifications to my code) it is failing to call IOProcs . in any case, the
created aggregate is functional. because I can use it in other apps like
aulab and in subsequent launches of my own app and it's never failing to
call IOProcs.
hope you can help.
thanks,
Christoph
From: Jeff Moore <email@hidden>
To: CoreAudio API <email@hidden>
Subject: Re: Race condition in aggregate device?
Date: Wed, 24 May 2006 11:49:53 -0700
You need to define what you mean by the aggregate device not working. Is
it not showing up in the device list? Is it missing sub-devices? Is it
failing to call IOProcs?
Please be as specific as you can be.
On May 24, 2006, at 11:45 AM, Christoph Teschner wrote:
I'm successfully creating an aggregate device that consists of the
built-in and a the M-Audio FireWire 410 Multichannel.
I'm not getting any error messages and it appears just as expected in
AMS.
I'm programmatically creating the aggregate device upon application
launch. now, when I try to use this
the newly created device, it only works in about 40% of all cases, from
which I assume that there might be an internal race condition
when creating the aggregate device. if in subsequent app launches I try
to use the exact same device it always works without any problems.
I've tried any possible combination of inserting usleep()s in the
creation of my aggregate device and in the setup of the AUGraph.
but the behavior still appears random to me, in the sense that sometimes
I can use the created device right away and sometimes
no audio data is being processed (unless I use the device in subsequent
app launches).
any help would be greaty appreciated.
--
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
_______________________________________________
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