Re: Fwd: How does one update a view position during a core audio render callback?
Re: Fwd: How does one update a view position during a core audio render callback?
- Subject: Re: Fwd: How does one update a view position during a core audio render callback?
- From: Admiral Quality <email@hidden>
- Date: Sun, 08 Mar 2015 13:44:02 -0400
I'm totally guessing here as I'm not very knowledgeable in OS X
programming (I use VSTGUI3.6 RC2 and Symbiosis frameworks to do most
of it for me for our VST and AU plug-in products). But doesn't the GUI
system offer its own timer? An onIdle() function or something like
that? Basically, the GUI system calls YOU when it's ready to refresh
the frame. At that point you pull the values you need from the render
side, rather than have the render side push values to the GUI (the
vast majority of which would just get ignored anyway). The classic
example is a VU/peak meter (where you also reset the peak once you've
displayed it).
Sorry if that's not right or doesn't apply, but it's how the
frameworks I use do it.
- Mike/AQ
On Sun, Mar 8, 2015 at 1:36 PM, Patrick J. Collins
<email@hidden> wrote:
>> It looks like your timer might not be firing consistently. I would test that first. I'm not sure
>> what else is going on in your Application but if there is any tracking then a timer will be
>> blocked. If your timer isn't firing as expected try adding it like this:
>> NSTimer *timer = [NSTimer timerWithTimeInterval:1.0 / 60.0 target:self
>> selector:@selector(moveBox) userInfo:nil repeats:1];
>> [[NSRunLoop mainRunLoop]addTimer:timer forMode:NSRunLoopCommonModes];
>
> Yeah unfortunately this didn't work either... It seems that it fires
> properly until audio starts playing, and then the timer callback
> frequency goes down to the point that it only gets called 5 or 6 times
> over a 1.6 second period... Super weird.
>
> Patrick J. Collins
> http://collinatorstudios.com
>
> _______________________________________________
> 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