|
void | tvconv_create (void **const phTVCnv) |
| Creates an instance of tvconv.
|
|
void | tvconv_destroy (void **const phTVCnv) |
| Destroys an instance of tvconv.
|
|
void | tvconv_init (void *const hTVCnv, int samplerate, int hostBlockSize) |
| Initialises an instance of tvconv with default settings.
|
|
void | tvconv_process (void *const hTVCnv, float *const *const inputs, float *const *const outputs, int nInputs, int nOutputs, int nSamples) |
| Performs the time-varying convolution processing.
|
|
void | tvconv_refreshParams (void *const hTVCnv) |
| Sets all intialisation flags to 1.
|
|
void | tvconv_checkReInit (void *const hTVCnv) |
| Checks whether things have to be reinitialised, and does so if it is needed.
|
|
void | tvconv_setFiltersAndPositions (void *const hTVCnv) |
| Reads IRs and positions from the current sofa file path.
|
|
void | tvconv_setSofaFilePath (void *const hTVCnv, const char *path) |
| Sets current sofa file path.
|
|
void | tvconv_setTargetPosition (void *const hTVCnv, float position, int dim) |
| Sets the target listener position.
|
|
int | tvconv_getFrameSize (void) |
| Returns the processing framesize (i.e., number of samples processed with every _process() call )
|
|
int | tvconv_getNumInputChannels (void *const hTVCnv) |
| Returns the number input channels.
|
|
int | tvconv_getNumOutputChannels (void *const hTVCnv) |
| Returns the number of output channels (the same as the number of channels in the loaded sofa file)
|
|
int | tvconv_getHostBlockSize (void *const hTVCnv) |
| Returns the currect host block size.
|
|
int | tvconv_getNumIRs (void *const hTVCnv) |
| Returns the number of IR channels in the loaded sofa file.
|
|
int | tvconv_getNumListenerPositions (void *const hTVCnv) |
| Returns the number of listener positions in the loaded sofa file.
|
|
float | tvconv_getListenerPosition (void *const hTVCnv, int index, int dim) |
| Returns the current coordinate of dimension dim (0 ... NUM_DIMENSIONS-1)
|
|
int | tvconv_getListenerPositionIdx (void *const hTVCnv) |
| Returns the index of the current IR position.
|
|
float | tvconv_getTargetPosition (void *const hTVCnv, int dim) |
| Returns the current coordinate of dimension dim (0 ... NUM_DIMENSIONS-1)
|
|
float | tvconv_getSourcePosition (void *const hTVCnv, int dim) |
| Returns the source coordinate of dimension dim (0 ... NUM_DIMENSIONS-1)
|
|
float | tvconv_getMinDimension (void *const hTVCnv, int dim) |
| Returns minimum cooridinate of dimension dim (0 ... NUM_DIMENSIONS-1)
|
|
float | tvconv_getMaxDimension (void *const hTVCnv, int dim) |
| Returns minimum cooridinate of dimension dim (0 ... NUM_DIMENSIONS-1)
|
|
int | tvconv_getIRLength (void *const hTVCnv) |
| Returns the current filter length, in samples.
|
|
int | tvconv_getIRFs (void *const hTVCnv) |
| Returns the samplerate of the loaded filters
|
|
int | tvconv_getHostFs (void *const hTVCnv) |
| Returns the samperate of the host.
|
|
int | tvconv_getProcessingDelay (void *const hTVCnv) |
| Returns the processing delay in samples (may be used for delay compensation features)
|
|
char * | tvconv_getSofaFilePath (void *const hTVCnv) |
| Returns the current Sofa file path.
|
|
SAF_TVCONV_ERROR_CODES | tvconv_getSofaErrorState (void *const hTVCnv) |
| Returns the current Sofa file error state.
|
|
CODEC_STATUS | tvconv_getCodecStatus (void *const hTVCnv) |
| Returns current codec status (see CODEC_STATUS enum)
|
|
A time-varying multi-channel convolver.
- Author
- Rapolas Daugintis
- Date
- 13.07.2021
Definition in file tvconv.h.
void tvconv_setFiltersAndPositions |
( |
void *const | hTVCnv | ) |
|
Reads IRs and positions from the current sofa file path.
None of the error checks failed
Not a SOFA file, or no such file was found in the specified location
Dimensions of the SOFA data were not as expected
The data-type of the SOFA data was not as expected
NetCDF is not thread safe!
Definition at line 243 of file tvconv.c.