• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How does one update a view position during a core audio render callback?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >How does one update a view position during a core audio render callback? (From: "Patrick J. Collins" <email@hidden>)

  • Prev by Date: Re: large scale (audio) file I/O on OS X : help or insight requested
  • Next by Date: Re: large scale (audio) file I/O on OS X : help or insight requested
  • Previous by thread: Re: How does one update a view position during a core audio render callback?
  • Next by thread: Re: How does one update a view position during a core audio render callback?
  • Index(es):
    • Date
    • Thread