VVSDK
1.0
The VVAmbisonic Library
|
#include <VVAmbisonic.h>
Public Member Functions | |
VVTetra (long sampleRate, const char *calibrationFilePath) | |
~VVTetra () | |
int | setProgram (int program) |
int | setProgram (const char *programName) |
void | getCurProgramName (char *programName) |
void | setAmbiFormat (int fmt) |
void | setAddressMode (int mode) |
bool | canProcess () |
void | process (float **inBufs, float **outBufs, long numSamples) |
void | generateImpulses (int blockSize, float **output) |
Public Member Functions inherited from VVAmbisonic::VVPlugin | |
VVPlugin (long sampleRate) | |
virtual | ~VVPlugin () |
Ambisonic Encoder. Converts the output of a tetrahedral microphone into B-Format using calibrations specific to each mic.
VVAmbisonic::VVTetra::VVTetra | ( | long | sampleRate, |
const char * | calibrationFilePath | ||
) |
Constructor
sampleRate | samples per second |
calibrationFilePath | Will use default locations if NULL or empty. |
VVAmbisonic::VVTetra::~VVTetra | ( | ) |
Destructor
|
virtual |
Checks that the selected calibration has filters for the current sampling rate.
Implements VVAmbisonic::VVPlugin.
void VVAmbisonic::VVTetra::generateImpulses | ( | int | blockSize, |
float ** | output | ||
) |
generate impulses for a matrix style calibration for the current sampling rate
blockSize | size of FFT to use |
**output | pointer to list of pointers to output buffers |
void VVAmbisonic::VVTetra::getCurProgramName | ( | char * | programName | ) |
Returns the name of the currently selected program.
programName | char array to return name into |
|
virtual |
Processes blocks of audio.
**inBufs | pointer to a list of pointers to the input buffers |
**outBufs | pointer to a list of pointers to the output buffers. Can be the same as the input buffers |
numSamples | the number of sampleFrames to process |
Implements VVAmbisonic::VVPlugin.
void VVAmbisonic::VVTetra::setAddressMode | ( | int | mode | ) |
Sets the address mode.
mode | 0 - normal, 1 - endfire, 2 - inverted, 3 - inverted endfire |
|
virtual |
Sets the ambisonic format.
fmt | 0 for FuMa, 1 for ACNSN3D |
Implements VVAmbisonic::VVPlugin.
int VVAmbisonic::VVTetra::setProgram | ( | int | program | ) |
Selects one of the available programs by number.
program | program number to select |
int VVAmbisonic::VVTetra::setProgram | ( | const char * | programName | ) |
Selects one of the available programs by name. Usually a TetraMic serial number like 2003.
programName | program to select |