• 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
When can I start timer for my AudioUnit view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When can I start timer for my AudioUnit view?


  • Subject: When can I start timer for my AudioUnit view?
  • From: Howard Moon <email@hidden>
  • Date: Thu, 24 Feb 2011 14:35:48 -0800

Hi all,

I'm trying to set up an NSTimer in a class that manages the main NSView object (and its children) in an AudioUnit effect, but my timer is never firing.

I've currently set it up it in a method called from the view factory's uiViewForAudioUnit method, and it appears to create a valid timer.  But it never fires.  I don't know if that's because uiViewForAudioUnit is running in a different thread, or what.  Here's how I set up the timer:

idleTimer = [NSTimer timerWithTimeInterval:0.05 target:self selector:@selector(onTimerEvent) userInfo:NULL repeats:YES];

where onTimerEvent is another method of this same class (which is a direct NSObject descendant that creates the root NSView).  Here's its signature:

-(void)onTimerEvent:(NSTimer*)theTimer

Any thoughts?

Thanks,
Howard




 _______________________________________________
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

  • Follow-Ups:
    • Re: When can I start timer for my AudioUnit view?
      • From: Iain McCowan <email@hidden>
  • Prev by Date: Playing ADPCM IMA4 data stream on iOS
  • Next by Date: Re: When can I start timer for my AudioUnit view?
  • Previous by thread: Playing ADPCM IMA4 data stream on iOS
  • Next by thread: Re: When can I start timer for my AudioUnit view?
  • Index(es):
    • Date
    • Thread