![]() |
Mach1 Spatial SDK
|
Public Member Functions | |
| int | getInputFormat () |
| Get the input format that this Mach1Transcode has been configured to process. | |
| int | getOutputFormat () |
| Get the output format that this Mach1Transcode has been configured to process. | |
| int | getInputNumChannels () |
| Get the number of channels that this Mach1Transcode has been configured to process, based on the input format. | |
| void | setInputFormat (int inFmt) |
| Sets the input format for transcoding from this Mach1Transcode options. | |
| int | getOutputNumChannels () |
| Get the number of channels that this Mach1Transcode has been configured to convert to, based on the output format. | |
| void | setOutputFormat (int outFmt) |
| Sets the output format for transcoding from this Mach1Transcode options. | |
| int | getFormatFromString (std::string str) |
| the enum for indicated format's string name. | |
| std::string | getFormatName (int fmt) |
| Given an input/output format index, return its human-readable name. | |
| std::vector< std::string > | getAllFormatNames () |
| Get a list of all the names of available formats in Mach1Transcode API. | |
| int | getFormatsCount () |
| Get the amount of available formats in Mach1Transcode API. | |
| PCM | processNormalization (std::vector< std::vector< PCM > > &bufs) |
| Get the largest PCM value in the given buffer, which would be used for normalization. | |
| PCM | processNormalization (PCM **bufs, int numSamples) |
| Get the largest PCM value in the given buffer, which would be used for normalization. | |
| void | processMasterGain (std::vector< std::vector< PCM > > &bufs, PCM masterGain) |
| Apply an input gain to the output sound field. | |
| void | processMasterGain (PCM **bufs, int numSamples, PCM masterGain) |
| Apply an input gain to the output sound field. | |
| void | setLFESub (std::vector< int > subChannelIndices, int sampleRate) |
| Apply a low pass filter (LPF) to each indicated channel index of the input format and sound field. | |
| void | setSpatialDownmixer (float corrThreshold=0.1) |
Sets the threshold float for getSpatialDownmixerPossibility calculation. | |
| bool | getSpatialDownmixerPossibility () |
| Get whether the compared signals are less than the setSpatialDownmixer(corrThreshold). | |
| void | setInputFormatCustomPointsJson (std::string inJson) |
| Sets the input format for transcoding from CustomPoints directly. | |
| void | setInputFormatCustomPoints (std::vector< Mach1Point3D > points) |
| Sets the input format for transcoding from CustomPoints directly. | |
| void | setOutputFormatCustomPointsJson (std::string outJson) |
| Sets the output format for transcoding from an external JSON source. | |
| void | setOutputFormatCustomPoints (std::vector< Mach1Point3D > points) |
| Sets the output format for transcoding from CustomPoints directly. | |
| void | setCustomPointsSamplerCallback (Mach1Point3D *(*callback)(long long, int &)) |
| bool | processConversionPath () |
| Use this function to control when to call for calculating the format transcoding calculations. | |
| std::vector< std::vector< PCM > > | getMatrixConversion () |
| Get the transcoding matrix of coefficients based on the set input and output formats. | |
| std::vector< int > | getFormatConversionPath () |
Get the shortest found conversion path to get from input format X to output format Y, both set by Mach1Transcode::setInputFormat(int inFmt) and Mach1Transcode::setOutputFormat(int outFmt) | |
| void | processConversion (std::vector< std::vector< PCM > > &in, std::vector< std::vector< PCM > > &out, int numSamples) |
| Process the conversion as set by previous functions. | |
| void | processConversion (PCM **inBufs, PCM **outBufs, int numSamples) |
| Process the conversion as set by previous functions. | |
| void | processConversionRebuffer (std::vector< std::vector< PCM > > &in, std::vector< std::vector< PCM > > &out, int numSamples) |
| Process the conversion as set by previous functions. | |
| std::vector< PCM > | getAvgSamplesDiff () |
| PCM | db2level (PCM db) |
| PCM | level2db (PCM level) |
| std::vector< std::string > Mach1Transcode< PCM >::getAllFormatNames | ( | ) |
Get a list of all the names of available formats in Mach1Transcode API.
| std::vector< int > Mach1Transcode< PCM >::getFormatConversionPath | ( | ) |
Get the shortest found conversion path to get from input format X to output format Y, both set by Mach1Transcode::setInputFormat(int inFmt) and Mach1Transcode::setOutputFormat(int outFmt)
| int Mach1Transcode< PCM >::getFormatFromString | ( | std::string | str | ) |
the enum for indicated format's string name.
| std | String representing the human-readable name of the format. |
| std::string Mach1Transcode< PCM >::getFormatName | ( | int | fmt | ) |
Given an input/output format index, return its human-readable name.
| fmt | integer representing aforementioned format. |
| std::vector< std::vector< PCM > > Mach1Transcode< PCM >::getMatrixConversion | ( | ) |
Get the transcoding matrix of coefficients based on the set input and output formats.
| bool Mach1Transcode< PCM >::getSpatialDownmixerPossibility | ( | ) |
Get whether the compared signals are less than the setSpatialDownmixer(corrThreshold).
Mach1Spatial will process an additional conversion to Mach1Horizon | bool Mach1Transcode< PCM >::processConversionPath | ( | ) |
Use this function to control when to call for calculating the format transcoding calculations.
processConversion() is called. | void Mach1Transcode< PCM >::processConversionRebuffer | ( | std::vector< std::vector< PCM > > & | in, |
| std::vector< std::vector< PCM > > & | out, | ||
| int | numSamples | ||
| ) |
Process the conversion as set by previous functions.
| void Mach1Transcode< PCM >::processMasterGain | ( | PCM ** | bufs, |
| int | numSamples, | ||
| PCM | masterGain | ||
| ) |
Apply an input gain to the output sound field.
| bufs | input buffer |
| numSamples | input number of samples |
| masterGain | float for gain multiplier |
| void Mach1Transcode< PCM >::processMasterGain | ( | std::vector< std::vector< PCM > > & | bufs, |
| PCM | masterGain | ||
| ) |
Apply an input gain to the output sound field.
| bufs | input buffer |
| masterGain | float for gain multiplier |
| PCM Mach1Transcode< PCM >::processNormalization | ( | PCM ** | bufs, |
| int | numSamples | ||
| ) |
Get the largest PCM value in the given buffer, which would be used for normalization.
getOutputNumChannels amount of arrays of size numSamples. | void Mach1Transcode< PCM >::setInputFormat | ( | int | inFmt | ) |
Sets the input format for transcoding from this Mach1Transcode options.
| void Mach1Transcode< PCM >::setInputFormatCustomPoints | ( | std::vector< Mach1Point3D > | points | ) |
Sets the input format for transcoding from CustomPoints directly.
| void Mach1Transcode< PCM >::setInputFormatCustomPointsJson | ( | std::string | inJson | ) |
Sets the input format for transcoding from CustomPoints directly.
| void Mach1Transcode< PCM >::setLFESub | ( | std::vector< int > | subChannelIndices, |
| int | sampleRate | ||
| ) |
Apply a low pass filter (LPF) to each indicated channel index of the input format and sound field.
| subChannelIndices | integer inputs for channel indices to be processed |
| sampleRate | integer for samplerate |
| void Mach1Transcode< PCM >::setOutputFormat | ( | int | outFmt | ) |
Sets the output format for transcoding from this Mach1Transcode options.
| void Mach1Transcode< PCM >::setOutputFormatCustomPoints | ( | std::vector< Mach1Point3D > | points | ) |
Sets the output format for transcoding from CustomPoints directly.
| void Mach1Transcode< PCM >::setOutputFormatCustomPointsJson | ( | std::string | outJson | ) |
Sets the output format for transcoding from an external JSON source.
| void Mach1Transcode< PCM >::setSpatialDownmixer | ( | float | corrThreshold = 0.1 | ) |
Sets the threshold float for getSpatialDownmixerPossibility calculation.
| corrThreshold | float from 0.0 to 1.0 where 0.0 no difference and incrementing to 1.0 is more difference |