Re: Logic not responding to Audio Engine Changes?
Re: Logic not responding to Audio Engine Changes?
- Subject: Re: Logic not responding to Audio Engine Changes?
- From: Jeff Moore <email@hidden>
- Date: Thu, 24 Aug 2006 14:56:35 -0700
On Aug 24, 2006, at 5:26 AM, BlazeAudio Developer wrote:
We have an Audio driver, which can change configuration at run-time
based on a number of events, including changes in SR, clock sources,
switch settings on the external hardware, etc.!
Specifically, as a result of these changes, AudioStreams are
removed, and added.
Nothing unusual about this.
It seems like even after we've removed some Audio Streams, Logic Pro
7 (on PPC) keeps on using them!
However, on Intel machines, Logic seems to recognize the change, and
uses the proper streams.
How are you determining this?
Here's the sequence we use:
To remove the streams, we do the following:
pauseAudioEngine()
beginConfigurationChange()
detachAudoiStreams()
And to add them back:
addStream() (multiple)
completeConfigurationChange()
resumeAudioEngine()
That seems like the right set of things to do, but the devil is in the
details, mostly of what the new streams look like compared to the old
streams.
Also, right after the resumeAudioEngine, the performAudioEngineStart
() is called, and after that the next call into convertInputSamples
() comes with a stream that was detached! And of course, Logic does
not use the new streams.
If we close and restart Logic, everything works fine.
At the same time, other programs, such as Nuendo and Cubase
recognize the stream changes and function normally.
Is there something that we are doing inappropriately?
My guess is that you are likely doing something that isn't quite
right, but it's tough to say what with the information at hand. Can
you go into more detail about what the streams you are creating look
like as well as general information about the system version and CPU
you are using to test?
--
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