![]() |
VVSDK
1.0
The VVAmbisonic Library
|
#include "VVAmbisonicCHelp.h"Go to the source code of this file.
| EXPORTED_FUNCTION void VVDecode_Allocate | ( | long | sampleRate | ) |
Allocates a new VVDecode
| sampleRate | samples per second |
Constructor
| EXPORTED_FUNCTION bool VVDecode_canProcess | ( | ) |
Always true
| EXPORTED_FUNCTION void VVDecode_Free | ( | ) |
Destructor
| EXPORTED_FUNCTION void VVDecode_getCurProgramName | ( | char * | programName | ) |
Returns the Name of the currently selected program.
| programName | char array to return into |
Returns the name of the currently selected program.
| EXPORTED_FUNCTION int VVDecode_getNumOutputs | ( | ) |
Returns the number of outputs used by the currently selected program. Can vary from 1 to 8.
| EXPORTED_FUNCTION void VVDecode_process | ( | float * | a, |
| float * | b, | ||
| float * | c, | ||
| float * | d, | ||
| long | numSamples | ||
| ) |
Process audio blocks.
| a | W |
| b | X |
| c | Y |
| d | Z |
| numSamples | number of frames to process |
Process audio blocks. Will always take 4 channels in. Number of output channels varies.
| EXPORTED_FUNCTION void VVDecode_setAmbiFormat | ( | int | fmt | ) |
Sets the ambisonic format.
| fmt | 0 for FuMa, 1 for ACNSN3D |
Sets the ambisonic format to FuMa or ACN/SN3D
| EXPORTED_FUNCTION int VVDecode_setProgram | ( | int | program | ) |
Selects one of the available programs by number.
| program | program number to select |
Selects one of the available programs by number.
| EXPORTED_FUNCTION int VVDecode_setProgramByName | ( | const char * | programName | ) |
Selects one of the available programs by name, e.g. XY or 5.1
| programName | program to select |
Selects one of the available programs by name e.g. XY, 5.1 or Cube.
| EXPORTED_FUNCTION void VVRotate_Allocate | ( | long | sampleRate | ) |
Allocates a new VVRotate
| sampleRate | samples per second |
Constructor
| EXPORTED_FUNCTION bool VVRotate_canProcess | ( | ) |
Always true
| EXPORTED_FUNCTION void VVRotate_Free | ( | ) |
Destructor
| EXPORTED_FUNCTION void VVRotate_process | ( | float * | a, |
| float * | b, | ||
| float * | c, | ||
| float * | d, | ||
| long | numSamples | ||
| ) |
Processes blocks of audio.
| a | W |
| b | X |
| c | Y |
| d | Z |
| numSamples | number of frames to process |
Processes blocks of audio. Will always take 4 channels in and 4 channels out.
| EXPORTED_FUNCTION void VVRotate_processFast | ( | float * | a, |
| float * | b, | ||
| float * | c, | ||
| float * | d, | ||
| float * | rotate, | ||
| float * | tilt, | ||
| float * | tumble, | ||
| long | numSamples | ||
| ) |
Processes blocks of audio with audio rate angles
| a | W |
| b | X |
| c | Y |
| d | Z |
| rotate | buffer of rotate angles |
| buffer | of tilt angles |
| buffer | of tumble angles |
| numSamples | number of frames to process |
Processes blocks of audio. Will always take 7 channels in and 4 channels out.
| EXPORTED_FUNCTION void VVRotate_setAmbiFormat | ( | int | fmt | ) |
Sets the ambisonic format.
| fmt | 0 for FuMa, 1 for ACNSN3D |
Sets the ambisonic format to FuMa or ACN/SN3D
| EXPORTED_FUNCTION void VVRotate_setAngles | ( | float | rotate, |
| float | tilt, | ||
| float | tumble | ||
| ) |
Rotates the soundfield then given amount. Angles in degrees. All directions refer to movement of the scene relative to the microphone.
| rotate | is positive left. |
| tilt | is positive counterclockwise. |
| tumble | is positive up. |
Rotates the soundfield then given amount. Rotate is positive left. Tilt is positive counterclockwise. Tumble is positive up. All directions refer to movement of the scene relative to the microphone.
| EXPORTED_FUNCTION void VVRotate_setMirrors | ( | bool | mX, |
| bool | mY, | ||
| bool | mZ | ||
| ) |
Mirrors the soundfield along the given.
| mX | flip X |
| mY | flip Y |
| mZ | flip Z |
Mirrors the soundfield along thgiven axis when the flag is true, i.e. if mX is true then flip front to back
| EXPORTED_FUNCTION void VVTetra_Allocate | ( | long | sampleRate, |
| const char * | calibrationFilePath | ||
| ) |
Allocates a new VVTetra module.
| sampleRate | samples per second |
| calibrationFilePath | Will use default locations if NULL or empty. |
Calibration path is a directory where calibration files are found. Will use default locations if NULL or empty.
| EXPORTED_FUNCTION bool VVTetra_canProcess | ( | ) |
Checks that the selected calibration has filters for the current sampling rate.
Checks that the selected calibration has filters for the current sampling rate.
| EXPORTED_FUNCTION void VVTetra_Free | ( | ) |
Destructor
| EXPORTED_FUNCTION void VVTetra_getCurProgramName | ( | char * | programName | ) |
Returns the name of the currently selected program.
| programName | char array to return name into |
Returns the name of the currently selected program.
| EXPORTED_FUNCTION void VVTetra_process | ( | float * | a, |
| float * | b, | ||
| float * | c, | ||
| float * | d, | ||
| long | numSamples | ||
| ) |
Processes blocks of audio.
| a | LFU |
| b | RFD |
| c | LBD |
| d | RBU |
| numSamples | number of frames to process |
Processes blocks of audio. Will always take 4 channels in and 4 channels out.
| EXPORTED_FUNCTION void VVTetra_setAddressMode | ( | short | mode | ) |
Sets processing to normal or end-fire modes
| mode | 0 - normal, 1 - endfire, 2 - inverted, 3 - inverted endfire |
Sets processing to normal or end-fire modes
| EXPORTED_FUNCTION void VVTetra_setAmbiFormat | ( | int | fmt | ) |
Sets the ambisonic format.
| fmt | 0 for FuMa, 1 for ACNSN3D |
Sets the ambisonic format to FuMa or ACN/SN3D
| EXPORTED_FUNCTION int VVTetra_setProgram | ( | int | program | ) |
Selects one of the available programs by number.
| program | program number to select |
Selects one of the available programs by enum.
| EXPORTED_FUNCTION int VVTetra_setProgramByName | ( | const char * | programName | ) |
Selects one of the available programs by name. Usually a TetraMic serial number like 2003.
| programName | program to select |
Selects one of the available programs by name. Usually a TetraMic serial number like 2003.
1.8.10