• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI notification / host Resets?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Speaker Audio when Headphone connected? (From: "Paul Haddad" <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Jeff Moore <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: "Paul Haddad" <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Jeff Moore <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Brian Willoughby <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Jeff Moore <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Brian Willoughby <email@hidden>)
 >Re: Speaker Audio when Headphone connected? (From: Jeff Moore <email@hidden>)
 >UI notification / host Resets? (From: "Kevin Dixon" <email@hidden>)

  • Prev by Date: Re: Speaker Audio when Headphone connected?
  • Next by Date: Re: AU render noise in Live
  • Previous by thread: UI notification / host Resets?
  • Next by thread: Re: Speaker Audio when Headphone connected?
  • Index(es):
    • Date
    • Thread