openshot-audio  0.1.4
Public Member Functions | List of all members
JackAudioIODeviceType Class Reference
Inheritance diagram for JackAudioIODeviceType:
AudioIODeviceType

Public Member Functions

 JackAudioIODeviceType ()
 
 ~JackAudioIODeviceType ()
 
void scanForDevices ()
 
StringArray getDeviceNames (bool wantInputNames) const
 
int getDefaultDeviceIndex (bool) const
 
bool hasSeparateInputsAndOutputs () const
 
int getIndexOfDevice (AudioIODevice *device, bool asInput) const
 
AudioIODevicecreateDevice (const String &outputDeviceName, const String &inputDeviceName)
 
void portConnectionChange ()
 
- Public Member Functions inherited from AudioIODeviceType
const StringgetTypeName () const noexcept
 
void addListener (Listener *listener)
 
void removeListener (Listener *listener)
 
virtual ~AudioIODeviceType ()
 

Additional Inherited Members

- Static Public Member Functions inherited from AudioIODeviceType
static AudioIODeviceTypecreateAudioIODeviceType_CoreAudio ()
 
static AudioIODeviceTypecreateAudioIODeviceType_iOSAudio ()
 
static AudioIODeviceTypecreateAudioIODeviceType_WASAPI (bool exclusiveMode)
 
static AudioIODeviceTypecreateAudioIODeviceType_DirectSound ()
 
static AudioIODeviceTypecreateAudioIODeviceType_ASIO ()
 
static AudioIODeviceTypecreateAudioIODeviceType_ALSA ()
 
static AudioIODeviceTypecreateAudioIODeviceType_JACK ()
 
static AudioIODeviceTypecreateAudioIODeviceType_Android ()
 
static AudioIODeviceTypecreateAudioIODeviceType_OpenSLES ()
 
- Protected Member Functions inherited from AudioIODeviceType
 AudioIODeviceType (const String &typeName)
 
void callDeviceChangeListeners ()
 

Constructor & Destructor Documentation

◆ JackAudioIODeviceType()

JackAudioIODeviceType::JackAudioIODeviceType ( )
inline

◆ ~JackAudioIODeviceType()

JackAudioIODeviceType::~JackAudioIODeviceType ( )
inline

Member Function Documentation

◆ createDevice()

AudioIODevice* JackAudioIODeviceType::createDevice ( const String outputDeviceName,
const String inputDeviceName 
)
inlinevirtual

Creates one of the devices of this type.

The deviceName must be one of the strings returned by getDeviceNames(), and scanForDevices() must have been called before this method is used.

Implements AudioIODeviceType.

◆ getDefaultDeviceIndex()

int JackAudioIODeviceType::getDefaultDeviceIndex ( bool  forInput) const
inlinevirtual

Returns the name of the default device.

This will be one of the names from the getDeviceNames() list.

Parameters
forInputif true, this means that a default input device should be returned; if false, it should return the default output

Implements AudioIODeviceType.

◆ getDeviceNames()

StringArray JackAudioIODeviceType::getDeviceNames ( bool  wantInputNames) const
inlinevirtual

Returns the list of available devices of this type.

The scanForDevices() method must have been called to create this list.

Parameters
wantInputNamesonly really used by DirectSound where devices are split up into inputs and outputs, this indicates whether to use the input or output name to refer to a pair of devices.

Implements AudioIODeviceType.

◆ getIndexOfDevice()

int JackAudioIODeviceType::getIndexOfDevice ( AudioIODevice device,
bool  asInput 
) const
inlinevirtual

Returns the index of a given device in the list of device names. If asInput is true, it shows the index in the inputs list, otherwise it looks for it in the outputs list.

Implements AudioIODeviceType.

◆ hasSeparateInputsAndOutputs()

bool JackAudioIODeviceType::hasSeparateInputsAndOutputs ( ) const
inlinevirtual

Returns true if two different devices can be used for the input and output.

Implements AudioIODeviceType.

◆ portConnectionChange()

void JackAudioIODeviceType::portConnectionChange ( )
inline

◆ scanForDevices()

void JackAudioIODeviceType::scanForDevices ( )
inlinevirtual

Refreshes the object's cached list of known devices.

This must be called at least once before calling getDeviceNames() or any of the other device creation methods.

Implements AudioIODeviceType.


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