OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_AUDIOBUFFERSOURCE_H
14 #define OPENSHOT_AUDIOBUFFERSOURCE_H
16 #include <AppConfig.h>
17 #include <juce_audio_basics/juce_audio_basics.h>
juce::int64 getNextReadPosition() const
Get the next read position of this source.
void getNextAudioBlock(const juce::AudioSourceChannelInfo &info)
Get the next block of audio samples.
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.
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.
void setBuffer(juce::AudioBuffer< float > *audio_buffer)
Update the internal buffer used by this source.
This class is used to expose an AudioBuffer<float> as an AudioSource in JUCE.
void releaseResources()
Release all resources.
juce::int64 getTotalLength() const
Get the total length (in samples) of this audio source.
void prepareToPlay(int, double)
Prepare to play this audio source.
~AudioBufferSource()
Destructor.
AudioBufferSource(juce::AudioBuffer< float > *audio_buffer)
Default constructor.