• 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
Buffer redundancy?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Buffer redundancy?


  • Subject: Buffer redundancy?
  • From: "James Farwell" <email@hidden>
  • Date: Wed, 22 Aug 2001 05:39:38 +0000

Greetings all,

I am in the process of writing a CoreAudio plugin for the *nix mp3/etc. player XMMS. While I have had some success, this is my first CoreAudio app, so I just wanted to make sure I wasn't doing anything stupid. XMMS feeds my program chunks of 16-bit signed integer data, which I write into an internal circular buffer. My IOProc simultaneously reads data out of the internal buffer and writes it into the CoreAudio buffer. The method seems clean, it is used by some of the other XMMS output plugins, but the thing that worried me was the sheer redundancy of buffers (mine, CoreAudio's and the one XMMS is using) that seem to be present to potentially cause bottlenecks. I just wanted to make sure that using an IOProc is the best (and only, from what I can tell) method of sending the data my plugin receives to the hardware as fast as possible. Alternatively, for those with streaming audio experience, is this circular buffer method optimal? Thanks a bunch.

- James

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


  • Prev by Date: Re: using integer audio data
  • Next by Date: RE: coreaudio-api digest, Vol 1 #70 - 2 msgs
  • Previous by thread: Re: using integer audio data
  • Next by thread: RE: coreaudio-api digest, Vol 1 #70 - 2 msgs
  • Index(es):
    • Date
    • Thread