28 #ifndef OPENSHOT_AUDIOBUFFERSOURCE_H 29 #define OPENSHOT_AUDIOBUFFERSOURCE_H 32 #define __JUCE_UNITTEST_JUCEHEADER__ 40 #include "JuceLibraryCode/JuceHeader.h" 60 AudioSampleBuffer *buffer;
72 void getNextAudioBlock (
const AudioSourceChannelInfo& info);
75 void prepareToPlay(
int,
double);
78 void releaseResources();
82 void setNextReadPosition (int64 newPosition);
85 int64 getNextReadPosition()
const;
88 int64 getTotalLength()
const;
91 bool isLooping()
const;
95 void setLooping (
bool shouldLoop);
98 void setBuffer (AudioSampleBuffer *audio_buffer);
This class is used to expose an AudioSampleBuffer as an AudioSource in JUCE.
This namespace is the default namespace for all code in the openshot library.