VVSDK  1.0
The VVAmbisonic Library
Macros | Functions | Variables
VVTetraC.cpp File Reference
#include "AVVTetra.h"
#include "VVTetraCHelp.h"
#include "VVTetraC.h"

Macros

#define EXPORT_FCNS
 

Functions

EXPORTED_FUNCTION void AllocateVVTetra (long sampleRate, const char *calibrationFilePath)
 
EXPORTED_FUNCTION void FreeAVVTetra ()
 
EXPORTED_FUNCTION void reloadCalibrations (const char *calibrationPath)
 
EXPORTED_FUNCTION void getCalibrationPath (char *calibrationPath)
 
EXPORTED_FUNCTION int setProgram (int program)
 
EXPORTED_FUNCTION int setProgramByName (const char *programName)
 
EXPORTED_FUNCTION void getCurProgramName (char *programName)
 
EXPORTED_FUNCTION int getNumPrograms ()
 
EXPORTED_FUNCTION int getCurProgram ()
 
EXPORTED_FUNCTION void getProgramName (int program, char *programName)
 
EXPORTED_FUNCTION void setAddressMode (short mode)
 
EXPORTED_FUNCTION short getAddressMode ()
 
EXPORTED_FUNCTION bool canProcess ()
 
EXPORTED_FUNCTION void setSampleRate (long sampleRate)
 
EXPORTED_FUNCTION void process (float *a, float *b, float *c, float *d, long numSamples)
 

Variables

AVVTetravvTetra = NULL
 

Macro Definition Documentation

#define EXPORT_FCNS

Function Documentation

EXPORTED_FUNCTION void AllocateVVTetra ( long  sampleRate,
const char *  calibrationFilePath 
)

Calibration path is a directory where calibration files are found. Will use default locations if NULL or empty.

Parameters
calibrationFilePathCalibration path is a directory where calibration files are found. Will use default locations if NULL or empty.
EXPORTED_FUNCTION bool canProcess ( )

Checks that the selected calibration has filters for the current sampling rate.

EXPORTED_FUNCTION void FreeAVVTetra ( )

Destructor

EXPORTED_FUNCTION short getAddressMode ( )

Returns the currend normal or end-fire mode

EXPORTED_FUNCTION void getCalibrationPath ( char *  calibrationPath)

Gets the current calibration path

Parameters
calibrationPathGets the current calibration path
EXPORTED_FUNCTION int getCurProgram ( )

Returns the index of the currently selected program

EXPORTED_FUNCTION void getCurProgramName ( char *  programName)

Returns the name of the currently selected program.

Parameters
programNameReturns the name of the currently selected program.
EXPORTED_FUNCTION int getNumPrograms ( )

Returns the number of available programs

EXPORTED_FUNCTION void getProgramName ( int  program,
char *  programName 
)

Returns the name of the indicated program or an empty string if invalid

Parameters
programNameReturns the name of the indicated program or an empty string if invalid
EXPORTED_FUNCTION void process ( float *  a,
float *  b,
float *  c,
float *  d,
long  numSamples 
)

Processes blocks of audio. Will always take 4 channels in and 4 channels out.

Parameters
numSamplesProcesses blocks of audio. Will always take 4 channels in and 4 channels out.
EXPORTED_FUNCTION void reloadCalibrations ( const char *  calibrationPath)

Sets the calibration path then clears and reloads all calibrations

Parameters
calibrationPathSets the calibration path then clears and reloads all calibrations
EXPORTED_FUNCTION void setAddressMode ( short  mode)

Sets processing to normal or end-fire modes

Parameters
modeSets processing to normal or end-fire modes
EXPORTED_FUNCTION int setProgram ( int  program)

Selects one of the available programs by enum.

Parameters
programSelects one of the available programs by enum.
EXPORTED_FUNCTION int setProgramByName ( const char *  programName)

Selects one of the available programs by name. Usually a TetraMic serial number like 2003.

Parameters
programNameSelects one of the available programs by name. Usually a TetraMic serial number like 2003.
EXPORTED_FUNCTION void setSampleRate ( long  sampleRate)

Sets the sample rate and chooses appropriate filters. Check canProcess to see if filters are found.

Variable Documentation

AVVTetra* vvTetra = NULL