Re: How does one update a view position during a core audio render callback?
Re: How does one update a view position during a core audio render callback?
- Subject: Re: How does one update a view position during a core audio render callback?
- From: Hamilton Feltman <email@hidden>
- Date: Wed, 11 Mar 2015 20:32:47 -0700
I am using an NSBox as my playhead, and in my callback proc, I tried doing inside the loop:
player->sampler.playheadView.position = player->sampler.playheadView.containerWidth / player->buffer.size * currentSampleIndex
In the loop? You mean, the loop? You’ve already heard not to call obj-c in realtime coreaudio threads. But even though that might be slow, it’s not as nearly as slow as calling it for every single sample (i.e. hundreds of times more than you need to). This is why it’s glitching continuously.
|
_______________________________________________
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