31 #ifndef OPENSHOT_AUDIOBUFFERSOURCE_H
32 #define OPENSHOT_AUDIOBUFFERSOURCE_H
35 #include <OpenShotAudio.h>
52 juce::AudioSampleBuffer *buffer;
90 void setBuffer (juce::AudioSampleBuffer *audio_buffer);
This class is used to expose an AudioSampleBuffer as an AudioSource in JUCE.
~AudioBufferSource()
Destructor.
void prepareToPlay(int, double)
Prepare to play this audio source.
void releaseResources()
Release all resources.
void setBuffer(juce::AudioSampleBuffer *audio_buffer)
Update the internal buffer used by this source.
AudioBufferSource(juce::AudioSampleBuffer *audio_buffer)
Default constructor.
void getNextAudioBlock(const juce::AudioSourceChannelInfo &info)
Get the next block of audio samples.
bool isLooping() const
Determines if this audio source should repeat when it reaches the end.
void setNextReadPosition(juce::int64 newPosition)
Set the next read position of this source.
juce::int64 getNextReadPosition() const
Get the next read position of this source.
juce::int64 getTotalLength() const
Get the total length (in samples) of this audio source.
void setLooping(bool shouldLoop)
Set if this audio source should repeat when it reaches the end.
This namespace is the default namespace for all code in the openshot library.