JUCE  v5.1.1-3-g1a0b28c73
JUCE API
AudioDeviceManager Class Reference

Manages the state of some audio and midi i/o devices. More...

#include <juce_AudioDeviceManager.h>

Inheritance diagram for AudioDeviceManager:
Collaboration diagram for AudioDeviceManager:

Classes

struct  AudioDeviceSetup
 This structure holds a set of properties describing the current audio setup. More...
 
struct  LevelMeter
 
struct  MidiCallbackInfo
 

Public Member Functions

 AudioDeviceManager ()
 Creates a default AudioDeviceManager. More...
 
 ~AudioDeviceManager ()
 Destructor. More...
 
void addAudioCallback (AudioIODeviceCallback *newCallback)
 Registers an audio callback to be used. More...
 
void addAudioDeviceType (AudioIODeviceType *newDeviceType)
 Adds a new device type to the list of types. More...
 
void addChangeListener (ChangeListener *listener)
 Registers a listener to receive change callbacks from this broadcaster. More...
 
void addMidiInputCallback (const String &midiInputDeviceName, MidiInputCallback *callback)
 Registers a listener for callbacks when midi events arrive from a midi input. More...
 
void closeAudioDevice ()
 Closes the currently-open device. More...
 
virtual void createAudioDeviceTypes (OwnedArray< AudioIODeviceType > &types)
 Creates a list of available types. More...
 
XmlElementcreateStateXml () const
 Returns some XML representing the current state of the manager. More...
 
void dispatchPendingMessages ()
 If a change message has been sent but not yet dispatched, this will call sendSynchronousChangeMessage() to make the callback immediately. More...
 
void enableInputLevelMeasurement (bool enableMeasurement) noexcept
 Turns on level-measuring for input channels. More...
 
void enableOutputLevelMeasurement (bool enableMeasurement) noexcept
 Turns on level-measuring for output channels. More...
 
CriticalSectiongetAudioCallbackLock () noexcept
 Returns the a lock that can be used to synchronise access to the audio callback. More...
 
void getAudioDeviceSetup (AudioDeviceSetup &result) const
 Returns the current device properties that are in use. More...
 
const OwnedArray< AudioIODeviceType > & getAvailableDeviceTypes ()
 Returns a list of the types of device supported. More...
 
double getCpuUsage () const
 Returns the average proportion of available CPU being spent inside the audio callbacks. More...
 
AudioIODevicegetCurrentAudioDevice () const noexcept
 Returns the currently-active audio device. More...
 
String getCurrentAudioDeviceType () const
 Returns the type of audio device currently in use. More...
 
AudioIODeviceTypegetCurrentDeviceTypeObject () const
 Returns the currently active audio device type object. More...
 
double getCurrentInputLevel () const noexcept
 Returns the current input level. More...
 
double getCurrentOutputLevel () const noexcept
 Returns the current output level. More...
 
MidiOutputgetDefaultMidiOutput () const noexcept
 Returns the current default midi output device. More...
 
const StringgetDefaultMidiOutputName () const noexcept
 Returns the name of the default midi output. More...
 
CriticalSectiongetMidiCallbackLock () noexcept
 Returns the a lock that can be used to synchronise access to the midi callback. More...
 
String initialise (int numInputChannelsNeeded, int numOutputChannelsNeeded, const XmlElement *savedState, bool selectDefaultDeviceOnFailure, const String &preferredDefaultDeviceName=String(), const AudioDeviceSetup *preferredSetupOptions=nullptr)
 Opens a set of audio devices ready for use. More...
 
String initialiseWithDefaultDevices (int numInputChannelsNeeded, int numOutputChannelsNeeded)
 Resets everything to a default device setup, clearing any stored settings. More...
 
bool isMidiInputEnabled (const String &midiInputDeviceName) const
 Returns true if a given midi input device is being used. More...
 
void playTestSound ()
 Plays a beep through the current audio device. More...
 
void removeAllChangeListeners ()
 Removes all listeners from the list. More...
 
void removeAudioCallback (AudioIODeviceCallback *callback)
 Deregisters a previously added callback. More...
 
void removeChangeListener (ChangeListener *listener)
 Unregisters a listener from the list. More...
 
void removeMidiInputCallback (const String &midiInputDeviceName, MidiInputCallback *callback)
 Removes a listener that was previously registered with addMidiInputCallback(). More...
 
void restartLastAudioDevice ()
 Tries to reload the last audio device that was running. More...
 
void sendChangeMessage ()
 Causes an asynchronous change message to be sent to all the registered listeners. More...
 
void sendSynchronousChangeMessage ()
 Sends a synchronous change message to all the registered listeners. More...
 
String setAudioDeviceSetup (const AudioDeviceSetup &newSetup, bool treatAsChosenDevice)
 Changes the current device or its settings. More...
 
void setCurrentAudioDeviceType (const String &type, bool treatAsChosenDevice)
 Changes the class of audio device being used. More...
 
void setDefaultMidiOutput (const String &deviceName)
 Sets a midi output device to use as the default. More...
 
void setMidiInputEnabled (const String &midiInputDeviceName, bool enabled)
 Enables or disables a midi input device. More...
 

Private Member Functions

void audioDeviceAboutToStartInt (AudioIODevice *)
 
void audioDeviceErrorInt (const String &)
 
void audioDeviceIOCallbackInt (const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples)
 
void audioDeviceListChanged ()
 
void audioDeviceStoppedInt ()
 
int chooseBestBufferSize (int preferred) const
 
double chooseBestSampleRate (double preferred) const
 
void createDeviceTypesIfNeeded ()
 
void deleteCurrentDevice ()
 
AudioIODeviceTypefindType (const String &inputName, const String &outputName)
 
AudioIODeviceTypefindType (const String &typeName)
 
void handleIncomingMidiMessageInt (MidiInput *, const MidiMessage &)
 
String initialiseDefault (const String &preferredDefaultDeviceName, const AudioDeviceSetup *)
 
String initialiseFromXML (const XmlElement &, bool selectDefaultDeviceOnFailure, const String &preferredDefaultDeviceName, const AudioDeviceSetup *)
 
void insertDefaultDeviceNames (AudioDeviceSetup &) const
 
String restartDevice (int blockSizeToUse, double sampleRateToUse, const BigInteger &ins, const BigInteger &outs)
 
void scanDevicesIfNeeded ()
 
void stopDevice ()
 
void updateXml ()
 

Private Attributes

CriticalSection audioCallbackLock
 
OwnedArray< AudioIODeviceTypeavailableDeviceTypes
 
ScopedPointer< CallbackHandlercallbackHandler
 
Array< AudioIODeviceCallback * > callbacks
 
double cpuUsageMs
 
ScopedPointer< AudioIODevicecurrentAudioDevice
 
String currentDeviceType
 
AudioDeviceSetup currentSetup
 
ScopedPointer< MidiOutputdefaultMidiOutput
 
String defaultMidiOutputName
 
OwnedArray< MidiInputenabledMidiInputs
 
BigInteger inputChannels
 
LevelMeter inputLevelMeter
 
OwnedArray< AudioDeviceSetuplastDeviceTypeConfigs
 
ScopedPointer< XmlElementlastExplicitSettings
 
bool listNeedsScanning
 
CriticalSection midiCallbackLock
 
Array< MidiCallbackInfomidiCallbacks
 
StringArray midiInsFromXml
 
int numInputChansNeeded
 
int numOutputChansNeeded
 
BigInteger outputChannels
 
LevelMeter outputLevelMeter
 
AudioSampleBuffer tempBuffer
 
ScopedPointer< AudioSampleBuffertestSound
 
int testSoundPosition
 
double timeToCpuScale
 

Friends

class CallbackHandler
 
struct ContainerDeletePolicy< CallbackHandler >
 

Detailed Description

Manages the state of some audio and midi i/o devices.

This class keeps tracks of a currently-selected audio device, through with which it continuously streams data from an audio callback, as well as one or more midi inputs.

The idea is that your application will create one global instance of this object, and let it take care of creating and deleting specific types of audio devices internally. So when the device is changed, your callbacks will just keep running without having to worry about this.

The manager can save and reload all of its device settings as XML, which makes it very easy for you to save and reload the audio setup of your application.

And to make it easy to let the user change its settings, there's a component to do just that - the AudioDeviceSelectorComponent class, which contains a set of device selection/sample-rate/latency controls.

To use an AudioDeviceManager, create one, and use initialise() to set it up. Then call addAudioCallback() to register your audio callback with it, and use that to process your audio data.

The manager also acts as a handy hub for incoming midi messages, allowing a listener to register for messages from either a specific midi device, or from whatever the current default midi input device is. The listener then doesn't have to worry about re-registering with different midi devices if they are changed or deleted.

And yet another neat trick is that amount of CPU time being used is measured and available with the getCpuUsage() method.

The AudioDeviceManager is a ChangeBroadcaster, and will send a change message to listeners whenever one of its settings is changed.

See also
AudioDeviceSelectorComponent, AudioIODevice, AudioIODeviceType

Constructor & Destructor Documentation

◆ AudioDeviceManager()

AudioDeviceManager::AudioDeviceManager ( )

Creates a default AudioDeviceManager.

Initially no audio device will be selected. You should call the initialise() method and register an audio callback with setAudioCallback() before it'll be able to actually make any noise.

◆ ~AudioDeviceManager()

AudioDeviceManager::~AudioDeviceManager ( )

Destructor.

Member Function Documentation

◆ addAudioCallback()

void AudioDeviceManager::addAudioCallback ( AudioIODeviceCallback newCallback)

Registers an audio callback to be used.

The manager will redirect callbacks from whatever audio device is currently in use to all registered callback objects. If more than one callback is active, they will all be given the same input data, and their outputs will be summed.

If necessary, this method will invoke audioDeviceAboutToStart() on the callback object before returning.

To remove a callback, use removeAudioCallback().

Referenced by StandalonePluginHolder::setupAudioDevices().

◆ addAudioDeviceType()

void AudioDeviceManager::addAudioDeviceType ( AudioIODeviceType newDeviceType)

Adds a new device type to the list of types.

The manager will take ownership of the object that is passed-in.

◆ addChangeListener()

void ChangeBroadcaster::addChangeListener ( ChangeListener listener)
inherited

Registers a listener to receive change callbacks from this broadcaster.

Trying to add a listener that's already on the list will have no effect.

◆ addMidiInputCallback()

void AudioDeviceManager::addMidiInputCallback ( const String midiInputDeviceName,
MidiInputCallback callback 
)

Registers a listener for callbacks when midi events arrive from a midi input.

The device name can be empty to indicate that it wants to receive all incoming events from all the enabled MIDI inputs. Or it can be the name of one of the MIDI input devices if it just wants the events from that device. (see MidiInput::getDevices() for the list of device names).

Only devices which are enabled (see the setMidiInputEnabled() method) will have their events forwarded on to listeners.

Referenced by StandalonePluginHolder::setupAudioDevices(), and StandalonePluginHolder::timerCallback().

◆ audioDeviceAboutToStartInt()

void AudioDeviceManager::audioDeviceAboutToStartInt ( AudioIODevice )
private

◆ audioDeviceErrorInt()

void AudioDeviceManager::audioDeviceErrorInt ( const String )
private

◆ audioDeviceIOCallbackInt()

void AudioDeviceManager::audioDeviceIOCallbackInt ( const float **  inputChannelData,
int  totalNumInputChannels,
float **  outputChannelData,
int  totalNumOutputChannels,
int  numSamples 
)
private

◆ audioDeviceListChanged()

void AudioDeviceManager::audioDeviceListChanged ( )
private

◆ audioDeviceStoppedInt()

void AudioDeviceManager::audioDeviceStoppedInt ( )
private

◆ chooseBestBufferSize()

int AudioDeviceManager::chooseBestBufferSize ( int  preferred) const
private

◆ chooseBestSampleRate()

double AudioDeviceManager::chooseBestSampleRate ( double  preferred) const
private

◆ closeAudioDevice()

void AudioDeviceManager::closeAudioDevice ( )

Closes the currently-open device.

You can call restartLastAudioDevice() later to reopen it in the same state that it was just in.

◆ createAudioDeviceTypes()

virtual void AudioDeviceManager::createAudioDeviceTypes ( OwnedArray< AudioIODeviceType > &  types)
virtual

Creates a list of available types.

This will add a set of new AudioIODeviceType objects to the specified list, to represent each available types of device.

You can override this if your app needs to do something specific, like avoid using DirectSound devices, etc.

◆ createDeviceTypesIfNeeded()

void AudioDeviceManager::createDeviceTypesIfNeeded ( )
private

◆ createStateXml()

XmlElement* AudioDeviceManager::createStateXml ( ) const

Returns some XML representing the current state of the manager.

This stores the current device, its samplerate, block size, etc, and can be restored later with initialise().

Note that this can return a null pointer if no settings have been explicitly changed (i.e. if the device manager has just been left in its default state).

Referenced by StandalonePluginHolder::saveAudioDeviceState().

◆ deleteCurrentDevice()

void AudioDeviceManager::deleteCurrentDevice ( )
private

◆ dispatchPendingMessages()

void ChangeBroadcaster::dispatchPendingMessages ( )
inherited

If a change message has been sent but not yet dispatched, this will call sendSynchronousChangeMessage() to make the callback immediately.

For thread-safety reasons, you must only call this method on the main message thread.

◆ enableInputLevelMeasurement()

void AudioDeviceManager::enableInputLevelMeasurement ( bool  enableMeasurement)
noexcept

Turns on level-measuring for input channels.

See also
getCurrentInputLevel()

◆ enableOutputLevelMeasurement()

void AudioDeviceManager::enableOutputLevelMeasurement ( bool  enableMeasurement)
noexcept

Turns on level-measuring for output channels.

See also
getCurrentOutputLevel()

◆ findType() [1/2]

AudioIODeviceType* AudioDeviceManager::findType ( const String inputName,
const String outputName 
)
private

◆ findType() [2/2]

AudioIODeviceType* AudioDeviceManager::findType ( const String typeName)
private

◆ getAudioCallbackLock()

CriticalSection& AudioDeviceManager::getAudioCallbackLock ( )
inlinenoexcept

Returns the a lock that can be used to synchronise access to the audio callback.

Obviously while this is locked, you're blocking the audio thread from running, so it must only be used for very brief periods when absolutely necessary.

◆ getAudioDeviceSetup()

void AudioDeviceManager::getAudioDeviceSetup ( AudioDeviceSetup result) const

Returns the current device properties that are in use.

See also
setAudioDeviceSetup

◆ getAvailableDeviceTypes()

const OwnedArray<AudioIODeviceType>& AudioDeviceManager::getAvailableDeviceTypes ( )

Returns a list of the types of device supported.

◆ getCpuUsage()

double AudioDeviceManager::getCpuUsage ( ) const

Returns the average proportion of available CPU being spent inside the audio callbacks.

Returns
A value between 0 and 1.0 to indicate the approximate proportion of CPU time spent in the callbacks.

◆ getCurrentAudioDevice()

AudioIODevice* AudioDeviceManager::getCurrentAudioDevice ( ) const
inlinenoexcept

◆ getCurrentAudioDeviceType()

String AudioDeviceManager::getCurrentAudioDeviceType ( ) const
inline

Returns the type of audio device currently in use.

See also
setCurrentAudioDeviceType

◆ getCurrentDeviceTypeObject()

AudioIODeviceType* AudioDeviceManager::getCurrentDeviceTypeObject ( ) const

Returns the currently active audio device type object.

Don't keep a copy of this pointer - it's owned by the device manager and could change at any time.

◆ getCurrentInputLevel()

double AudioDeviceManager::getCurrentInputLevel ( ) const
noexcept

Returns the current input level.

To use this, you must first enable it by calling enableInputLevelMeasurement().

See also
enableInputLevelMeasurement()

◆ getCurrentOutputLevel()

double AudioDeviceManager::getCurrentOutputLevel ( ) const
noexcept

Returns the current output level.

To use this, you must first enable it by calling enableOutputLevelMeasurement().

See also
enableOutputLevelMeasurement()

◆ getDefaultMidiOutput()

MidiOutput* AudioDeviceManager::getDefaultMidiOutput ( ) const
inlinenoexcept

Returns the current default midi output device.

If no device has been selected, or the device can't be opened, this will return nullptr.

See also
getDefaultMidiOutputName

◆ getDefaultMidiOutputName()

const String& AudioDeviceManager::getDefaultMidiOutputName ( ) const
inlinenoexcept

Returns the name of the default midi output.

See also
setDefaultMidiOutput, getDefaultMidiOutput

◆ getMidiCallbackLock()

CriticalSection& AudioDeviceManager::getMidiCallbackLock ( )
inlinenoexcept

Returns the a lock that can be used to synchronise access to the midi callback.

Obviously while this is locked, you're blocking the midi system from running, so it must only be used for very brief periods when absolutely necessary.

◆ handleIncomingMidiMessageInt()

void AudioDeviceManager::handleIncomingMidiMessageInt ( MidiInput ,
const MidiMessage  
)
private

◆ initialise()

String AudioDeviceManager::initialise ( int  numInputChannelsNeeded,
int  numOutputChannelsNeeded,
const XmlElement savedState,
bool  selectDefaultDeviceOnFailure,
const String preferredDefaultDeviceName = String(),
const AudioDeviceSetup preferredSetupOptions = nullptr 
)

Opens a set of audio devices ready for use.

This will attempt to open either a default audio device, or one that was previously saved as XML.

Parameters
numInputChannelsNeededthe maximum number of input channels your app would like to use (the actual number of channels opened may be less than the number requested)
numOutputChannelsNeededthe maximum number of output channels your app would like to use (the actual number of channels opened may be less than the number requested)
savedStateeither a previously-saved state that was produced by createStateXml(), or nullptr if you want the manager to choose the best device to open.
selectDefaultDeviceOnFailureif true, then if the device specified in the XML fails to open, then a default device will be used instead. If false, then on failure, no device is opened.
preferredDefaultDeviceNameif this is not empty, and there's a device with this name, then that will be used as the default device (assuming that there wasn't one specified in the XML). The string can actually be a simple wildcard, containing "*" and "?" characters
preferredSetupOptionsif this is non-null, the structure will be used as the set of preferred settings when opening the device. If you use this parameter, the preferredDefaultDeviceName field will be ignored
Returns
an error message if anything went wrong, or an empty string if it worked ok.

Referenced by StandalonePluginHolder::reloadAudioDeviceState().

◆ initialiseDefault()

String AudioDeviceManager::initialiseDefault ( const String preferredDefaultDeviceName,
const AudioDeviceSetup  
)
private

◆ initialiseFromXML()

String AudioDeviceManager::initialiseFromXML ( const XmlElement ,
bool  selectDefaultDeviceOnFailure,
const String preferredDefaultDeviceName,
const AudioDeviceSetup  
)
private

◆ initialiseWithDefaultDevices()

String AudioDeviceManager::initialiseWithDefaultDevices ( int  numInputChannelsNeeded,
int  numOutputChannelsNeeded 
)

Resets everything to a default device setup, clearing any stored settings.

◆ insertDefaultDeviceNames()

void AudioDeviceManager::insertDefaultDeviceNames ( AudioDeviceSetup ) const
private

◆ isMidiInputEnabled()

bool AudioDeviceManager::isMidiInputEnabled ( const String midiInputDeviceName) const

Returns true if a given midi input device is being used.

See also
setMidiInputEnabled

◆ playTestSound()

void AudioDeviceManager::playTestSound ( )

Plays a beep through the current audio device.

This is here to allow the audio setup UI panels to easily include a "test" button so that the user can check where the audio is coming from.

◆ removeAllChangeListeners()

void ChangeBroadcaster::removeAllChangeListeners ( )
inherited

Removes all listeners from the list.

◆ removeAudioCallback()

void AudioDeviceManager::removeAudioCallback ( AudioIODeviceCallback callback)

Deregisters a previously added callback.

If necessary, this method will invoke audioDeviceStopped() on the callback object before returning.

See also
addAudioCallback

Referenced by StandalonePluginHolder::shutDownAudioDevices().

◆ removeChangeListener()

void ChangeBroadcaster::removeChangeListener ( ChangeListener listener)
inherited

Unregisters a listener from the list.

If the listener isn't on the list, this won't have any effect.

◆ removeMidiInputCallback()

void AudioDeviceManager::removeMidiInputCallback ( const String midiInputDeviceName,
MidiInputCallback callback 
)

Removes a listener that was previously registered with addMidiInputCallback().

Referenced by StandalonePluginHolder::shutDownAudioDevices(), and StandalonePluginHolder::timerCallback().

◆ restartDevice()

String AudioDeviceManager::restartDevice ( int  blockSizeToUse,
double  sampleRateToUse,
const BigInteger ins,
const BigInteger outs 
)
private

◆ restartLastAudioDevice()

void AudioDeviceManager::restartLastAudioDevice ( )

Tries to reload the last audio device that was running.

Note that this only reloads the last device that was running before closeAudioDevice() was called - it doesn't reload any kind of saved-state, and can only be called after a device has been opened with SetAudioDevice().

If a device is already open, this call will do nothing.

◆ scanDevicesIfNeeded()

void AudioDeviceManager::scanDevicesIfNeeded ( )
private

◆ sendChangeMessage()

void ChangeBroadcaster::sendChangeMessage ( )
inherited

Causes an asynchronous change message to be sent to all the registered listeners.

The message will be delivered asynchronously by the main message thread, so this method will return immediately. To call the listeners synchronously use sendSynchronousChangeMessage().

Referenced by SelectedItemSet< SelectableItemType >::changed().

◆ sendSynchronousChangeMessage()

void ChangeBroadcaster::sendSynchronousChangeMessage ( )
inherited

Sends a synchronous change message to all the registered listeners.

This will immediately call all the listeners that are registered. For thread-safety reasons, you must only call this method on the main message thread.

See also
dispatchPendingMessages

Referenced by SelectedItemSet< SelectableItemType >::changed().

◆ setAudioDeviceSetup()

String AudioDeviceManager::setAudioDeviceSetup ( const AudioDeviceSetup newSetup,
bool  treatAsChosenDevice 
)

Changes the current device or its settings.

If you want to change a device property, like the current sample rate or block size, you can call getAudioDeviceSetup() to retrieve the current settings, then tweak the appropriate fields in the AudioDeviceSetup structure, and pass it back into this method to apply the new settings.

Parameters
newSetupthe settings that you'd like to use
treatAsChosenDeviceif this is true and if the device opens correctly, these new settings will be taken as having been explicitly chosen by the user, and the next time createStateXml() is called, these settings will be returned. If it's false, then the device is treated as a temporary or default device, and a call to createStateXml() will return either the last settings that were made with treatAsChosenDevice as true, or the last XML settings that were passed into initialise().
Returns
an error message if anything went wrong, or an empty string if it worked ok.
See also
getAudioDeviceSetup

◆ setCurrentAudioDeviceType()

void AudioDeviceManager::setCurrentAudioDeviceType ( const String type,
bool  treatAsChosenDevice 
)

Changes the class of audio device being used.

This switches between, e.g. ASIO and DirectSound. On the Mac you probably won't ever call this because there's only one type: CoreAudio.

For a list of types, see getAvailableDeviceTypes().

◆ setDefaultMidiOutput()

void AudioDeviceManager::setDefaultMidiOutput ( const String deviceName)

Sets a midi output device to use as the default.

The list of devices can be obtained with the MidiOutput::getDevices() method.

The specified device will be opened automatically and can be retrieved with the getDefaultMidiOutput() method.

Pass in an empty string to deselect all devices. For the default device, you can use MidiOutput::getDevices() [MidiOutput::getDefaultDeviceIndex()].

See also
getDefaultMidiOutput, getDefaultMidiOutputName

◆ setMidiInputEnabled()

void AudioDeviceManager::setMidiInputEnabled ( const String midiInputDeviceName,
bool  enabled 
)

Enables or disables a midi input device.

The list of devices can be obtained with the MidiInput::getDevices() method.

Any incoming messages from enabled input devices will be forwarded on to all the listeners that have been registered with the addMidiInputCallback() method. They can either register for messages from a particular device, or from just the "default" midi input.

Routing the midi input via an AudioDeviceManager means that when a listener registers for the default midi input, this default device can be changed by the manager without the listeners having to know about it or re-register.

It also means that a listener can stay registered for a midi input that is disabled or not present, so that when the input is re-enabled, the listener will start receiving messages again.

See also
addMidiInputCallback, isMidiInputEnabled

Referenced by StandalonePluginHolder::timerCallback().

◆ stopDevice()

void AudioDeviceManager::stopDevice ( )
private

◆ updateXml()

void AudioDeviceManager::updateXml ( )
private

Friends And Related Function Documentation

◆ CallbackHandler

friend class CallbackHandler
friend

◆ ContainerDeletePolicy< CallbackHandler >

friend struct ContainerDeletePolicy< CallbackHandler >
friend

Member Data Documentation

◆ audioCallbackLock

CriticalSection AudioDeviceManager::audioCallbackLock
private

◆ availableDeviceTypes

OwnedArray<AudioIODeviceType> AudioDeviceManager::availableDeviceTypes
private

◆ callbackHandler

ScopedPointer<CallbackHandler> AudioDeviceManager::callbackHandler
private

◆ callbacks

Array<AudioIODeviceCallback*> AudioDeviceManager::callbacks
private

◆ cpuUsageMs

double AudioDeviceManager::cpuUsageMs
private

◆ currentAudioDevice

ScopedPointer<AudioIODevice> AudioDeviceManager::currentAudioDevice
private

◆ currentDeviceType

String AudioDeviceManager::currentDeviceType
private

◆ currentSetup

AudioDeviceSetup AudioDeviceManager::currentSetup
private

◆ defaultMidiOutput

ScopedPointer<MidiOutput> AudioDeviceManager::defaultMidiOutput
private

◆ defaultMidiOutputName

String AudioDeviceManager::defaultMidiOutputName
private

◆ enabledMidiInputs

OwnedArray<MidiInput> AudioDeviceManager::enabledMidiInputs
private

◆ inputChannels

BigInteger AudioDeviceManager::inputChannels
private

◆ inputLevelMeter

LevelMeter AudioDeviceManager::inputLevelMeter
private

◆ lastDeviceTypeConfigs

OwnedArray<AudioDeviceSetup> AudioDeviceManager::lastDeviceTypeConfigs
private

◆ lastExplicitSettings

ScopedPointer<XmlElement> AudioDeviceManager::lastExplicitSettings
private

◆ listNeedsScanning

bool AudioDeviceManager::listNeedsScanning
mutableprivate

◆ midiCallbackLock

CriticalSection AudioDeviceManager::midiCallbackLock
private

◆ midiCallbacks

Array<MidiCallbackInfo> AudioDeviceManager::midiCallbacks
private

◆ midiInsFromXml

StringArray AudioDeviceManager::midiInsFromXml
private

◆ numInputChansNeeded

int AudioDeviceManager::numInputChansNeeded
private

◆ numOutputChansNeeded

int AudioDeviceManager::numOutputChansNeeded
private

◆ outputChannels

BigInteger AudioDeviceManager::outputChannels
private

◆ outputLevelMeter

LevelMeter AudioDeviceManager::outputLevelMeter
private

◆ tempBuffer

AudioSampleBuffer AudioDeviceManager::tempBuffer
private

◆ testSound

ScopedPointer<AudioSampleBuffer> AudioDeviceManager::testSound
private

◆ testSoundPosition

int AudioDeviceManager::testSoundPosition
private

◆ timeToCpuScale

double AudioDeviceManager::timeToCpuScale
private

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