On a related subject: How is level one cache replaced with new data,
should one (or ones compiler) decide to use some of the prefetch
instructions available from Intel PII and up? It would make sense to
fetch the next dataset while doing what has to be done "now". On the
other hand, overwriting the current dataset is somewhat counter
productive.
The layout of the data would influence these decisions, no?
mvh // Jens M Andreasen
On Tue, 2005-11-15 at 11:58 +0000, James McDermott wrote:
What are your
thoughts? What is best practice on multichannel audio, or
is it always application-specific?
According to my experience and understanding:
-non-interleaved (multiple channels in separate arrays) is a bit
easier to code, but
-interleaved could give better performance (because the data you need
"now" is all close together in memory).
-libsndfile uses interleaved.
-plugins (DSSI, LADSPA) use separate arrays.
I'm not qualified to talk about best practice, so take with a pinch of salt...
--