Converts AudioBuffer class instances between different formats.
More...
#include <AudioBufferConverter.hpp>
Converts AudioBuffer class instances between different formats.
AudioBufferConverter class.
◆ deinterleave()
template<typename T >
template void switchboard::AudioBufferConverter::deinterleave< float > |
( |
const AudioBuffer< T > & |
inputBuffer, |
|
|
AudioBuffer< T > & |
outputBuffer |
|
) |
| |
|
static |
Deinterleaves input buffer into output buffer channels.
Input and output buffers must have the same number of channels. Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | AudioBuffer to be deinterleaved. Must be interleaved. |
outputBuffer | AudioBuffer to store input data. Must be non-interleaved. |
◆ floatToShortInt()
void switchboard::AudioBufferConverter::floatToShortInt |
( |
const AudioBuffer< float > & |
inputBuffer, |
|
|
AudioBuffer< int16 > & |
outputBuffer |
|
) |
| |
|
static |
Converts float AudioBuffer to int16 AudioBuffer.
Input and output buffers must have the same number of channels. Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | The float AudioBuffer that needs to be converted. |
outputBuffer | The int16 AudioBuffer that will store the converted data. |
◆ interleave()
template<typename T >
template void switchboard::AudioBufferConverter::interleave< float > |
( |
const AudioBuffer< T > & |
inputBuffer, |
|
|
AudioBuffer< T > & |
outputBuffer |
|
) |
| |
|
static |
Interleaves input buffer channels into output buffer.
Input and output buffers must have the same number of channels. Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | AudioBuffer to be interleaved. Must be non-interleaved. |
outputBuffer | AudioBuffer to store input data. Must be interleaved. |
◆ monoToMultichannel()
template<typename T >
template void switchboard::AudioBufferConverter::monoToMultichannel< float > |
( |
const AudioBuffer< T > & |
inputBuffer, |
|
|
AudioBuffer< T > & |
outputBuffer |
|
) |
| |
|
static |
Copies mono input data into multiple channels of output.
Input buffer must be mono. Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | AudioBuffer whose mono channel will be placed into multiple channels. Must be mono. |
outputBuffer | AudioBuffer in which the input data will be placed. |
◆ multichannelToMono()
template<typename T >
template void switchboard::AudioBufferConverter::multichannelToMono< float > |
( |
const AudioBuffer< T > & |
inputBuffer, |
|
|
AudioBuffer< T > & |
outputBuffer, |
|
|
const bool |
normalize |
|
) |
| |
|
static |
Mixes multichannel input data into mono output.
Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | AudioBuffer whose channels will be merged into a mono channel. |
outputBuffer | AudioBuffer in which the input data will be placed. Must be mono. |
normalize | True if the signals have to be normalized to the largest signal after mixing. |
◆ shortIntToFloat()
void switchboard::AudioBufferConverter::shortIntToFloat |
( |
const AudioBuffer< int16 > & |
inputBuffer, |
|
|
AudioBuffer< float > & |
outputBuffer |
|
) |
| |
|
static |
Converts int16 AudioBuffer to float AudioBuffer.
Input and output buffers must have the same number of channels. Input and output buffers must have the same number of frames.
- Parameters
-
inputBuffer | The int16 AudioBuffer that needs to be converted. |
outputBuffer | The float AudioBuffer that will store the converted data. |
The documentation for this class was generated from the following files:
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioBuffer/AudioBufferConverter.hpp
- /Users/jenkins/.jenkins/workspace/Switchboard Developer Site - Production/SwitchboardSDK/src/all/AudioBuffer/AudioBufferConverter.cpp