OpenShot Library | libopenshot
0.2.5
|
Go to the documentation of this file.
32 #ifndef OPENSHOT_AUDIO_PLAYBACK_THREAD_H
33 #define OPENSHOT_AUDIO_PLAYBACK_THREAD_H
35 #include "../ReaderBase.h"
36 #include "../RendererBase.h"
37 #include "../AudioReaderSource.h"
38 #include "../AudioDeviceInfo.h"
39 #include "../Settings.h"
49 juce::TimeSliceThread::run();
89 AudioSourcePlayer player;
90 AudioTransportSource transport;
91 MixerAudioSource mixer;
95 juce::WaitableEvent play;
96 juce::WaitableEvent played;
110 std::shared_ptr<openshot::Frame> getFrame();
113 int64_t getCurrentFramePosition();
119 void Seek(int64_t new_position);
128 void setSpeed(
int new_speed) {
if (source) source->
setSpeed(new_speed); }
131 int getSpeed()
const {
if (source)
return source->
getSpeed();
else return 1; }
134 std::string getError()
140 std::vector<openshot::AudioDeviceInfo> getAudioDeviceNames()
151 #endif // OPENSHOT_AUDIO_PLAYBACK_THREAD_H
std::string initialise_error
Error found during JUCE initialise method.
This namespace is the default namespace for all code in the openshot library.
AudioDeviceManager audioDeviceManager
Public device manager property.
static AudioDeviceManagerSingleton * Instance()
Override with no channels and no preferred audio device.
The audio playback thread.
Exception when too many seek attempts happen.
std::vector< openshot::AudioDeviceInfo > audio_device_names
List of valid audio device names.
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,...
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.