25#ifndef __MATRIXCONV_INTERNAL_H_INCLUDED__
26#define __MATRIXCONV_INTERNAL_H_INCLUDED__
40#define MIN_FRAME_SIZE ( 512 )
41#define MAX_FRAME_SIZE ( 8192 )
42#define MAX_NUM_CHANNELS_FOR_WAV ( 1024 )
49typedef struct _matrixconv
A standard matrix convolver.
Main include header for the Spatial_Audio_Framework (SAF)
Include header for SAF externals.
Main structure for matrixconv.
float * filters
the matrix of filters; FLAT: nOutputChannels x nInputChannels x filter_length
float ** outputFrameTD
Output buffer; MAX_NUM_CHANNELS x hostBlockSize_clamped.
int nOutputChannels
number of output channels (same as the number of channels in the loaded wav)
int input_wav_length
length of the wav files loaded in samples (inputs are concatenated)
float ** inFIFO
Input FIFO buffer.
int host_fs
current samplerate of the host
int enablePartitionedConv
0: disabled, 1: enabled
float ** inputFrameTD
Input buffer; MAX_NUM_CHANNELS x hostBlockSize_clamped.
void * hMatrixConv
saf_matrixConv handle
int nfilters
the number of filters (nOutputChannels x nInputChannels)
float ** outFIFO
Output FIFO buffer.
int hostBlockSize_clamped
Clamped between MIN_FRAME_SIZE and MAX_FRAME_SIZE.
int hostBlockSize
current host block size
int reInitFilters
FLAG: 0: do not reinit, 1: reinit, 2: reinit in progress.
int filter_length
length of the filters (input_wav_length/nInputChannels)
int nInputChannels
number of input channels
int FIFO_idx
FIFO buffer index.
int filter_fs
current samplerate of the filters