OpenShot Audio Library | OpenShotAudio 0.3.2
|
#include <juce_AudioIODeviceType.h>
Classes | |
class | Listener |
Public Member Functions | |
const String & | getTypeName () const noexcept |
virtual void | scanForDevices ()=0 |
virtual StringArray | getDeviceNames (bool wantInputNames=false) const =0 |
virtual int | getDefaultDeviceIndex (bool forInput) const =0 |
virtual int | getIndexOfDevice (AudioIODevice *device, bool asInput) const =0 |
virtual bool | hasSeparateInputsAndOutputs () const =0 |
virtual AudioIODevice * | createDevice (const String &outputDeviceName, const String &inputDeviceName)=0 |
void | addListener (Listener *listener) |
void | removeListener (Listener *listener) |
virtual | ~AudioIODeviceType () |
Protected Member Functions | |
AudioIODeviceType (const String &typeName) | |
void | callDeviceChangeListeners () |
Represents a type of audio driver, such as DirectSound, ASIO, CoreAudio, etc.
To get a list of available audio driver types, use the AudioDeviceManager::createAudioDeviceTypes() method. Each of the objects returned can then be used to list the available devices of that type. E.g.
For an easier way of managing audio devices and their settings, have a look at the AudioDeviceManager class.
Definition at line 61 of file juce_AudioIODeviceType.h.
|
virtual |
Destructor.
Definition at line 31 of file juce_AudioIODeviceType.cpp.
Definition at line 26 of file juce_AudioIODeviceType.cpp.
Adds a listener that will be called when this type of device is added or removed from the system.
Definition at line 36 of file juce_AudioIODeviceType.cpp.
|
protected |
Synchronously calls all the registered device list change listeners.
Definition at line 39 of file juce_AudioIODeviceType.cpp.
|
static |
Creates an ALSA device type if it's available on this platform, or returns null.
Definition at line 66 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates an Android device type if it's available on this platform, or returns null.
Definition at line 78 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates an ASIO device type if it's available on this platform, or returns null.
Definition at line 62 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates a Bela device type if it's available on this platform, or returns null.
Definition at line 74 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates a CoreAudio device type if it's available on this platform, or returns null.
Definition at line 46 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates a DirectSound device type if it's available on this platform, or returns null.
Definition at line 58 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates an iOS device type if it's available on this platform, or returns null.
Definition at line 50 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates a JACK device type if it's available on this platform, or returns null.
Definition at line 70 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates an Oboe device type if it's available on this platform, or returns null.
Definition at line 86 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates an Android OpenSLES device type if it's available on this platform, or returns null.
Definition at line 82 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
static |
Creates a WASAPI device type if it's available on this platform, or returns null.
Definition at line 54 of file juce_AudioIODeviceType.cpp.
Referenced by juce::AudioDeviceManager::createAudioDeviceTypes().
|
pure virtual |
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.
Referenced by juce::AudioDeviceManager::setAudioDeviceSetup().
Returns the name of the default device.
This will be one of the names from the getDeviceNames() list.
forInput | if true, this means that a default input device should be returned; if false, it should return the default output |
|
pure virtual |
Returns the list of available devices of this type.
The scanForDevices() method must have been called to create this list.
wantInputNames | only 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. |
|
pure virtual |
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.
Returns the name of this type of driver that this object manages.
This will be something like "DirectSound", "ASIO", "CoreAudio", "ALSA", etc.
Definition at line 69 of file juce_AudioIODeviceType.h.
Referenced by juce::AudioDeviceManager::getCurrentDeviceTypeObject().
Returns true if two different devices can be used for the input and output.
Removes a listener that was previously added with addListener().
Definition at line 37 of file juce_AudioIODeviceType.cpp.
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.