OpenShot Library | libopenshot  0.3.3
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
openshot::AudioDeviceManagerSingleton Class Reference

Singleton wrapper for AudioDeviceManager (to prevent multiple instances). More...

#include <Qt/AudioPlaybackThread.h>

Collaboration diagram for openshot::AudioDeviceManagerSingleton:
[legend]

Public Member Functions

void CloseAudioDevice ()
 Close audio device. More...
 

Static Public Member Functions

static AudioDeviceManagerSingletonInstance ()
 Override with default sample rate & channels (44100, 2) and no preferred audio device. More...
 
static AudioDeviceManagerSingletonInstance (int rate, int channels)
 

Public Attributes

juce::AudioDeviceManager audioDeviceManager
 Public device manager property. More...
 
AudioDeviceInfo currentAudioDevice
 Current open audio device (or last attempted device - if none were successful) More...
 
double defaultSampleRate
 Default sample rate (as detected) More...
 
std::string initialise_error
 Error found during JUCE initialise method. More...
 

Detailed Description

Singleton wrapper for AudioDeviceManager (to prevent multiple instances).

Definition at line 42 of file AudioPlaybackThread.h.

Member Function Documentation

◆ CloseAudioDevice()

void openshot::AudioDeviceManagerSingleton::CloseAudioDevice ( )

Close audio device.

Definition at line 168 of file AudioPlaybackThread.cpp.

Referenced by openshot::QtPlayer::CloseAudioDevice().

◆ Instance() [1/2]

AudioDeviceManagerSingleton * openshot::AudioDeviceManagerSingleton::Instance ( )
static

Override with default sample rate & channels (44100, 2) and no preferred audio device.

Definition at line 37 of file AudioPlaybackThread.cpp.

Referenced by openshot::QtPlayer::CloseAudioDevice().

◆ Instance() [2/2]

AudioDeviceManagerSingleton * openshot::AudioDeviceManagerSingleton::Instance ( int  rate,
int  channels 
)
static

Override with custom sample rate & channels and no preferred audio device sample rate and channels are only set on 1st call (when singleton is created)

Definition at line 43 of file AudioPlaybackThread.cpp.

Member Data Documentation

◆ audioDeviceManager

juce::AudioDeviceManager openshot::AudioDeviceManagerSingleton::audioDeviceManager

Public device manager property.

Definition at line 68 of file AudioPlaybackThread.h.

Referenced by Instance().

◆ currentAudioDevice

AudioDeviceInfo openshot::AudioDeviceManagerSingleton::currentAudioDevice

Current open audio device (or last attempted device - if none were successful)

Definition at line 58 of file AudioPlaybackThread.h.

◆ defaultSampleRate

double openshot::AudioDeviceManagerSingleton::defaultSampleRate

Default sample rate (as detected)

Definition at line 55 of file AudioPlaybackThread.h.

◆ initialise_error

std::string openshot::AudioDeviceManagerSingleton::initialise_error

Error found during JUCE initialise method.

Definition at line 52 of file AudioPlaybackThread.h.


The documentation for this class was generated from the following files: