OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_AudioDataConverters.h>
Public Member Functions | |
virtual void | convertSamples (void *destSamples, const void *sourceSamples, int numSamples) const =0 |
virtual void | convertSamples (void *destSamples, int destSubChannel, const void *sourceSamples, int sourceSubChannel, int numSamples) const =0 |
A base class for objects that are used to convert between two different sample formats.
The AudioData::ConverterInstance implements this base class and can be templated, so you can create an instance that converts between two particular formats, and then store this in the abstract base class.
Definition at line 587 of file juce_AudioDataConverters.h.
|
pure virtual |
Converts a sequence of samples from the converter's source format into the dest format.
Implemented in juce::AudioData::ConverterInstance< SourceSampleType, DestSampleType >.
|
pure 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.
Implemented in juce::AudioData::ConverterInstance< SourceSampleType, DestSampleType >.