Fwd: How does one update a view position during a core audio render callback?
Fwd: How does one update a view position during a core audio render callback?
- Subject: Fwd: How does one update a view position during a core audio render callback?
- From: "Dave O'Neill" <email@hidden>
- Date: Sat, 07 Mar 2015 14:24:50 -0800
---------- Forwarded message ----------
From:
Dave O'Neill <email@hidden>Date: Sat, Mar 7, 2015 at 2:24 PM
Subject: Re: How does one update a view position during a core audio render callback?
To: Patrick Collins <
email@hidden>
Here's an example
https://gist.github.com/dave234/72bce8798dc7b1ade48b
Try moving slider around and see it block the timer.
Then comment out:
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:1.0 / 60.0 target:self selector:@selector(moveBox) userInfo:nil repeats:1];
and uncomment :
NSTimer *timer = [NSTimer timerWithTimeInterval:1.0 / 60.0 target:self selector:@selector(moveBox) userInfo:nil repeats:1];
[[NSRunLoop mainRunLoop]addTimer:timer forMode:NSRunLoopCommonModes];
and try it again;
_______________________________________________
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