Re: The proper way of finding out if a host is doing offline processing
Re: The proper way of finding out if a host is doing offline processing
- Subject: Re: The proper way of finding out if a host is doing offline processing
- From: William Stewart <email@hidden>
- Date: Fri, 24 Mar 2006 11:45:58 -0800
Bobby,
On 24/03/2006, at 7:54 AM, Bobby Zlatkov wrote:
Stefan, thanks much for your reply.
What I am doing is this:
UInt32 offlineProp;
Uint32 size = sizeof(offlineProp);
AudioUnitGetProperty( mAudioUnit, kAudioUnitProperty_OfflineRender,
kAudioUnitScope_Global, 0, & offlineProp, &size );
This is incorrect. You don't want to get the property, but rather you
need to set it. By default we expect all AUs to have this property
disabled - that is, when they are first opened they would be ready
for a real time operation.
Then, as the host changes the context, it uses this property to tell
the AU about that change, so you use AudioUnitSetProperty (ie SET,
not GET), and to go offline, the value you pass in is 1, to go back
to real-time, the value you pass in is 0.
...
Not sure if this is the right way to do it and also I was not sure
where
would be the proper place to put this call ( in CreateUI(), Render
() or
somewhere else ) since on return offlineProp is always 0.
Sure - that is correct. Once you set it, it will change.
Bill
Regards,
Bobby Zlatkov
Cakewalk
-----Original Message-----
From: Stefan Gretscher [mailto:email@hidden]
Sent: Thursday, March 23, 2006 6:26 PM
To: Bobby Zlatkov
Cc: email@hidden
Subject: Re: The proper way of finding out if a host is doing offline
processing
Hi Bobby,
Am 24.03.2006 um 00:05 schrieb Bobby Zlatkov:
we have a soft synth that is an AU and are trying to figure out how
to ask a host if the host is doing offline processing like freeze
or bounce.
There's kAudioUnitProperty_OfflineRender - the hosts would set it
before bouncing/freezing and clear it again when switching back to
normal, real-time operation.
Best,
Stefan
_______________________________________________
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
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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