Subject: Re: [linux-audio-dev] stereo / multichannel plugins in LADSPA ?
From: Jaroslav Kysela (perex_AT_suse.cz)
Date: Thu Mar 23 2000 - 20:10:25 EET
On Thu, 23 Mar 2000, Benno Senoner wrote:
> On Thu, 23 Mar 2000, Jaroslav Kysela wrote:
> >
> > In some cases, it is not good to interleave the data. I suggest to use
> > vectors (struct iovec) like writev/readv for i/o operations. Interleaved
> > data may be stored in one vector and non-interleaved in vectors equal to
> > number of used channels. I actually rewritting the ALSA plugins in this
> > fashion.
> >
> > Jaroslav
> >
>
> I agree for ALSA stuff, since there are multichannel cards have
> buffers organized in a iovec-fashion.
> But for general plugin-processing, why should iovec bring any advantage over
> the interleaved case ? any example ?
It's more optimized when some situations occurs (when hardware does not
use interleaved samples for multichannel, you already mentioned it), but
I agree, that is nothing critical.
Jaroslav
-----
Jaroslav Kysela <perex_AT_suse.cz>
SuSE Linux http://www.suse.com
ALSA project http://www.alsa-project.org
This archive was generated by hypermail 2b28 : Thu Mar 23 2000 - 21:14:44 EET