> > 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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
