OpenShot Library | libopenshot-audio
0.2.0
|
27 : input (inputSource, deleteInputWhenDeleted),
30 jassert (inputSource !=
nullptr);
38 input->prepareToPlay (samplesPerBlockExpected, sampleRate);
48 input->getNextAudioBlock (bufferToFill);
73 void ReverbAudioSource::setBypassed (
bool b) noexcept
void processStereo(float *const left, float *const right, const int numSamples) noexcept
Applies the reverb to two stereo channels of audio data.
void processMono(float *const samples, const int numSamples) noexcept
Applies the reverb to a single mono channel of audio data.
Base class for objects that can produce a continuous stream of audio.
void setParameters(const Reverb::Parameters &newParams)
Changes the reverb's parameters.
void prepareToPlay(int samplesPerBlockExpected, double sampleRate) override
Tells the source to prepare for playing.
Type * getWritePointer(int channelNumber) noexcept
Returns a writeable pointer to one of the buffer's channels.
ReverbAudioSource(AudioSource *inputSource, bool deleteInputWhenDeleted)
Creates a ReverbAudioSource to process a given input source.
int startSample
The first sample in the buffer from which the callback is expected to write data.
int numSamples
The number of samples in the buffer which the callback is expected to fill with data.
void releaseResources() override
Allows the source to release anything it no longer needs after playback has stopped.
int getNumChannels() const noexcept
Returns the number of channels of audio data that this buffer contains.
~ReverbAudioSource() override
Destructor.
AudioBuffer< float > * buffer
The destination buffer to fill with audio data.
Used by AudioSource::getNextAudioBlock().
void setParameters(const Parameters &newParams)
Applies a new set of parameters to the reverb.
Automatically locks and unlocks a mutex object.
void getNextAudioBlock(const AudioSourceChannelInfo &) override
Called repeatedly to fetch subsequent blocks of audio data.
Holds the parameters being used by a Reverb object.
void setSampleRate(const double sampleRate)
Sets the sample rate that will be used for the reverb.