When can I start timer for my AudioUnit view?
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