Re: UI notification / host Resets?
Re: UI notification / host Resets?
- Subject: Re: UI notification / host Resets?
- From: William Stewart <email@hidden>
- Date: Mon, 25 Feb 2008 18:18:17 -0800
On Feb 25, 2008, at 2:19 PM, Kevin Dixon wrote:
Hi all,
Two questions. First:
I'm making an AudioUnit that parses SMPTE LTC. I've got it parsing
now,
and I'd like the last-parsed time code to be displayed by my AU as
parameters. I've got parameters for hours, minutes, seconds, and
frames,
so upon successful parse, I do this:
mAudioUnit->SetParameter(kParam_Hours, hoursValue);
for each parameter from within the kernel's Process method.
However, neither my Cocoa ui or the generic UI seems to update until I
press stop in the host, and then manually refresh the UI (close/
reopen)
Am I doing this wrong, it seems the Listeners aren't hearing anything?
You aren't doing any notification - so you'd need to issue a
notification (AUEventListenerNotify)
Second:
Under what circumstances do host applications call Reset on the AU? It
seems with Logic that it calls reset during playback every 1024
samples or
so.
That can't be right. You must have a call to reset in there somehwere,
because if Logic was calling Reset on every AU every 1024 samples,
nothing would be working
This is just out of curiosity. These Reset calls have been causing me
trouble, since the SMPTE frames often get "cut in half" by a Reset
call.
Should I keep my state variables like Parameters, and not change them
during a Reset?
yes - you do not change parameter values as a result of reset.
I think you are doing this the wrong way. You should use a custom
property and not parameters to publish this information (which also
means doing a custom view to display it)
The AUFilter demo /Developer/Examples/CoreAudio has that example and
it uses custom properties. If you are doing a custom view, you can
still include the generic cocoa view in your custom view to display
all of the the real parameters in your AU, so you only have to write
the UI code to display your SMPTE values
Thanks in advance!
-Kevin Dixon
_______________________________________________
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