OpenShot Library | libopenshot
0.2.2
|
Go to the documentation of this file.
29 #ifndef OPENSHOT_AUDIO_PLAYBACK_THREAD_H
30 #define OPENSHOT_AUDIO_PLAYBACK_THREAD_H
32 #include "../ReaderBase.h"
33 #include "../RendererBase.h"
34 #include "../AudioReaderSource.h"
39 using juce::WaitableEvent;
47 TimeSliceThread::run();
81 AudioSourcePlayer player;
82 AudioTransportSource transport;
83 MixerAudioSource mixer;
102 std::shared_ptr<Frame> getFrame();
105 int64_t getCurrentFramePosition();
111 void Seek(int64_t new_position);
120 void setSpeed(
int new_speed) {
if (source) source->
setSpeed(new_speed); }
123 int getSpeed()
const {
if (source)
return source->
getSpeed();
else return 1; }
131 #endif // OPENSHOT_AUDIO_PLAYBACK_THREAD_H
This namespace is the default namespace for all code in the openshot library.
AudioDeviceManager audioDeviceManager
Public device manager property.
The audio playback thread.
Exception when too many seek attempts happen.
Singleton wrapper for AudioDeviceManager (to prevent multiple instances).
The private part of QtPlayer class, which contains an audio thread and video thread,...
void setSpeed(int new_speed)
Set Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster,...
static AudioDeviceManagerSingleton * Instance(int numChannels)
Create or get an instance of this singleton (invoke the class with this method)
This class is used to playback a video from a reader.
SafeTimeSliceThread(const String &s)
void CloseAudioDevice()
Close audio device.
This abstract class is the base class, used by all readers in libopenshot.
int getSpeed() const
Get Speed (The speed and direction to playback a reader (1=normal, 2=fast, 3=faster,...
This class is used to expose any ReaderBase derived class as an AudioSource in JUCE.