A multi-channel convolver.
#ifndef __MULTICONV_H_INCLUDED__
#define __MULTICONV_H_INCLUDED__
#ifdef __cplusplus
extern "C" {
#endif
int samplerate,
int hostBlockSize);
const float *const * inputs,
float* const* const outputs,
int nInputs,
int nOutputs,
int nSamples);
const float* const* H,
int numChannels,
int numSamples,
int sampleRate);
#ifdef __cplusplus
}
#endif
#endif
A bunch of things that are common to many of the saf examples.
int multiconv_getFilterLength(void *const hMCnv)
Returns the current filter length, in samples.
void multiconv_create(void **const phMCnv)
Creates an instance of multiconv.
int multiconv_getNfilters(void *const hMCnv)
Returns the number of filters in the loaded wav file.
int multiconv_getHostBlockSize(void *const hMCnv)
Returns the currect host block size.
int multiconv_getEnablePart(void *const hMCnv)
Returns a flag indicating whether partitioned convolution is enabled (1) or disabled (0)
int multiconv_getFilterFs(void *const hMCnv)
Returns the samplerate of the loaded filters.
void multiconv_init(void *const hMCnv, int samplerate, int hostBlockSize)
Initialises an instance of multiconv with default settings.
int multiconv_getNumChannels(void *const hMCnv)
Returns the number input/output channels.
void multiconv_checkReInit(void *const hMCnv)
Checks whether things have to be reinitialised, and does so if it is needed.
void multiconv_setEnablePart(void *const hMCnv, int newState)
Enable (1), disable (0), partitioned convolution.
void multiconv_setNumChannels(void *const hMCnv, int newValue)
Sets the number of input/output channels.
void multiconv_refreshParams(void *const hMCnv)
Sets all intialisation flags to 1.
int multiconv_getProcessingDelay(void *const hMCnv)
Returns the processing delay in samples (may be used for delay compensation features)
int multiconv_getHostFs(void *const hMCnv)
Returns the samperate of the host.
void multiconv_destroy(void **const phMCnv)
Destroys an instance of multiconv.
void multiconv_process(void *const hMCnv, const float *const *inputs, float *const *const outputs, int nInputs, int nOutputs, int nSamples)
Performs the multuchannel convolution processing.
void multiconv_setFilters(void *const hMCnv, const float *const *H, int numChannels, int numSamples, int sampleRate)
Loads the multichannel of filters.
int multiconv_getFrameSize(void)
Returns the processing framesize (i.e., number of samples processed with every _process() call )