Buffer redundancy?
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