A class that converts between two templated AudioData::Pointer types, and which implements the AudioData::Converter interface. More...
Inherits AudioData::Converter.
Public Member Functions | |
| ConverterInstance (int numSourceChannels=1, int numDestChannels=1) | |
| ~ConverterInstance () | |
| void | convertSamples (void *dest, const void *source, int numSamples) const |
| Converts a sequence of samples from the converter's source format into the dest format. | |
| void | convertSamples (void *dest, int destSubChannel, const void *source, int sourceSubChannel, int numSamples) const |
| Converts a sequence of samples from the converter's source format into the dest format. | |
A class that converts between two templated AudioData::Pointer types, and which implements the AudioData::Converter interface.
This can be used as a concrete instance of the AudioData::Converter abstract class.
| AudioData::ConverterInstance< SourceSampleType, DestSampleType >::ConverterInstance | ( | int | numSourceChannels = 1, |
| int | numDestChannels = 1 |
||
| ) |
| AudioData::ConverterInstance< SourceSampleType, DestSampleType >::~ConverterInstance | ( | ) |
| void AudioData::ConverterInstance< SourceSampleType, DestSampleType >::convertSamples | ( | void * | destSamples, |
| const void * | sourceSamples, | ||
| int | numSamples | ||
| ) | const [virtual] |
Converts a sequence of samples from the converter's source format into the dest format.
Implements AudioData::Converter.
| void AudioData::ConverterInstance< SourceSampleType, DestSampleType >::convertSamples | ( | void * | destSamples, |
| int | destSubChannel, | ||
| const void * | sourceSamples, | ||
| int | sourceSubChannel, | ||
| int | numSamples | ||
| ) | const [virtual] |
Converts a sequence of samples from the converter's source format into the dest format.
This method takes sub-channel indexes, which can be used with interleaved formats in order to choose a particular sub-channel of the data to be used.
Implements AudioData::Converter.
References addBytesToPointer(), and jassert.