OpenShot Library | libopenshot-audio
0.2.0
|
60 bool deleteSourceWhenDeleted);
89 int sourceChannelIndex);
102 int destChannelIndex);
127 void prepareToPlay (
int samplesPerBlockExpected,
double sampleRate)
override;
136 int requiredNumberOfChannels;
void releaseResources() override
Allows the source to release anything it no longer needs after playback has stopped.
void getNextAudioBlock(const AudioSourceChannelInfo &) override
Called repeatedly to fetch subsequent blocks of audio data.
void restoreFromXml(const XmlElement &)
Restores the mappings from an XML object created by createXML().
int getRemappedInputChannel(int inputChannelIndex) const
Returns the channel from our input that will be sent to channel inputChannelIndex of our input audio ...
Base class for objects that can produce a continuous stream of audio.
void setNumberOfChannelsToProduce(int requiredNumberOfChannels)
Specifies a number of channels that this audio source must produce from its getNextAudioBlock() callb...
int getRemappedOutputChannel(int outputChannelIndex) const
Returns the output channel to which channel outputChannelIndex of our input audio source will be sent...
An AudioSource that takes the audio from another source, and re-maps its input and output channels to...
Used to build a tree of elements representing an XML document.
ChannelRemappingAudioSource(AudioSource *source, bool deleteSourceWhenDeleted)
Creates a remapping source that will pass on audio from the given input.
~ChannelRemappingAudioSource() override
Destructor.
XmlElement * createXml() const
Returns an XML object to encapsulate the state of the mappings.
Used by AudioSource::getNextAudioBlock().
void setOutputChannelMapping(int sourceChannelIndex, int destChannelIndex)
Creates an output channel mapping.
void prepareToPlay(int samplesPerBlockExpected, double sampleRate) override
Tells the source to prepare for playing.
void clearAllMappings()
Clears any mapped channels.
Holds a pointer to an object which can optionally be deleted when this pointer goes out of scope.
void setInputChannelMapping(int destChannelIndex, int sourceChannelIndex)
Creates an input channel mapping.