• 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
Render callback not producing enough samples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Render callback not producing enough samples


  • Subject: Render callback not producing enough samples
  • From: Alberto Ricci <email@hidden>
  • Date: Thu, 18 Mar 2004 11:15:20 +0100

Hello,

I've been off list for some time now, I tried searching but couldn't find any past post regarding this.

Suppose I want to play some data - which is generated in real time - through the default output unit. Such data is generated at an approximate rate of 44100 samples per second, but some frames may be skipped every once in a while (just a few samples here and there, resulting in an effective average rate of 44099.9 Hz or so), so my Render callback wouldn't know what samples to generate in those cases in order to ensure a precise 44100 Hz rate.

What should my Render callback do in such situations? Always return the requested number of frames, no matter what, therefore filling the gaps with silence (or with the last frame's value)?

Or can it return a smaller amount of samples and have CoreAudio properly handle that?

Thanks,
Alberto.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Render callback not producing enough samples
      • From: David Duncan <email@hidden>
  • Prev by Date: measuring overall CPU load
  • Next by Date: Re: Render callback not producing enough samples
  • Previous by thread: measuring overall CPU load
  • Next by thread: Re: Render callback not producing enough samples
  • Index(es):
    • Date
    • Thread