34 pData->codecStatus = newStatus;
39 float dist = 0, minDist = 0;
40 int i, d, min_idx = 0;
43 for(i = 0; i < pData->nListenerPositions; i++){
44 for(d = 0; d < NUM_DIMENSIONS; d++)
48 if(dist < minDist || i == 0){
56 pData->position_idx = min_idx;
64 for(d = 0; d < NUM_DIMENSIONS; d++){
67 for(i = 1; i<pData->nListenerPositions; i++){
75 for(d = 0; d < NUM_DIMENSIONS; d++)
CODEC_STATUS
Current status of the codec.
@ CODEC_STATUS_NOT_INITIALISED
Codec has not yet been initialised, or the codec configuration has changed.
@ CODEC_STATUS_INITIALISING
Codec is currently being initialised, input audio should not be processed.
Main structure for tvconv
vectorND minDimensions
Minimum values across all dimensions.
vectorND maxDimensions
Maximum values across all dimensions.
vectorND * listenerPositions
The listener positions; nListenerPositions x 3.
void tvconv_findNearestNeigbour(void *const hTVCnv)
Finds the index holding the nearest neigbour to the selected position.
void tvconv_setCodecStatus(void *const hTVCnv, CODEC_STATUS newStatus)
Sets codec status (see CODEC_STATUS enum)
void tvconv_setMinMaxDimensions(void *const hTVCnv)
Sets the smallest and the highest position of each dimension from the list of positions.
A time-varying multi-channel convolver.