• 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: Buffer overrun management with TPCircularBuffer.. best way to do so?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buffer overrun management with TPCircularBuffer.. best way to do so?


  • Subject: Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
  • From: Fastepholier Philgarlic <email@hidden>
  • Date: Mon, 12 May 2014 22:24:45 +0200

By the way, why not using AUDeferredRenderer and let it manage all this theading/sync nightmare?  It looks design exactly for what you're trying to achieve (AFAIU).



2014-04-16 12:49 GMT+02:00 Douglas Carmichael <email@hidden>:
To whom it may concern:

I’ve started working on using TPCircularBuffer to manage the output of a music playback library (libxmp: http://xmp.sourceforge.net/libxmp.html), but I’m stumped on the best way to manage overruns.

Currently, my code does take the audio data into the buffer and render it out on the rendering callback, but there doesn’t seem to be a way to check if the buffer is full with a TPCircularBuffer before pushing data into the buffer.

What should I be doing in my code to make it work?

(I was able to send equal-size chunks of audio from the library in my rendering callback without issue, but the ring buffer will work better for the app I want to build.)

Thanks in advance for any help!

—Douglas


 _______________________________________________
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

  • Follow-Ups:
    • Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Playing to a device when users switch
  • Next by Date: Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
  • Previous by thread: Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
  • Next by thread: Re: Buffer overrun management with TPCircularBuffer.. best way to do so?
  • Index(es):
    • Date
    • Thread