[Portaudio] Multi-channel issue and low-latency need

Richard Dobson richarddobson@blueyonder.co.uk
Tue Feb 13 09:57:01 2007


No. Others will explain  the architecure better; as far as I can tell it 
refers to a sort of split-buffer system, nothing to do with audio 
channels themselves.

Suffice it to say, I got multi-channel output working without having to 
alter any of that code.

Richard Dobson




jf menard wrote:
> Let me explain my thoughts.  Looking at the PaUtilBufferProcessor 
> structure in pa_process.h:
> 
> /** @brief The main buffer processor data structure.
>  Allocate one of these, initialize it with PaUtil_InitializeBufferProcessor
>  and terminate it with PaUtil_TerminateBufferProcessor.
> */
> typedef struct {
>    ...
>    PaUtilChannelDescriptor *hostOutputChannels[2]; /**< pointers to 
> arrays of channel descriptors.
>                                                         pointers are 
> NULL for half-duplex input processing.
>                                                         
> hostOutputChannels[i].data is NULL when the caller
>                                                         calls 
> PaUtil_SetNoOutput()
>    ...                                                  */
> } PaUtilBufferProcessor;
> 
> 
> ...shows that the channel structure is hard-coded to [2]. Does that mean 
> that it will only be able to process 2 output channels?
>