JUCE
|
Public Member Functions | |
String | open (const BigInteger &, const BigInteger &, double, int) override |
Tries to open the device ready to play. More... | |
void | close () override |
Closes and releases the device if it's open. More... | |
void | start (AudioIODeviceCallback *) override |
Starts the device actually playing. More... | |
void | stop () override |
Stops the device playing. More... | |
Array< double > | getAvailableSampleRates () override |
Returns the set of sample-rates this device supports. More... | |
Array< int > | getAvailableBufferSizes () override |
Returns the set of buffer sizes that are available. More... | |
bool | setAudioPreprocessingEnabled (bool) override |
On devices which support it, this allows automatic gain control or other mic processing to be disabled. More... | |
bool | isPlaying () override |
Returns true if the device is still calling back. More... | |
bool | isOpen () override |
Returns true if the device is still open. More... | |
String | getLastError () override |
Returns the last error that happened if anything went wrong. More... | |
StringArray | getOutputChannelNames () override |
Returns the names of all the available output channels on this device. More... | |
StringArray | getInputChannelNames () override |
Returns the names of all the available input channels on this device. More... | |
int | getDefaultBufferSize () override |
Returns the default buffer-size to use. More... | |
int | getCurrentBufferSizeSamples () override |
Returns the buffer size that the device is currently using. More... | |
double | getCurrentSampleRate () override |
Returns the sample rate that the device is currently using. More... | |
int | getCurrentBitDepth () override |
Returns the device's current physical bit-depth. More... | |
BigInteger | getActiveOutputChannels () const override |
Returns a mask showing which of the available output channels are currently enabled. More... | |
BigInteger | getActiveInputChannels () const override |
Returns a mask showing which of the available input channels are currently enabled. More... | |
int | getOutputLatencyInSamples () override |
Returns the device's output latency. More... | |
int | getInputLatencyInSamples () override |
Returns the device's input latency. More... | |
int | getXRunCount () const noexcept override |
Returns the number of under- or over runs reported by the OS since playback/recording has started. More... | |
void | setMidiMessageCollector (MidiMessageCollector *) |
AudioPlayHead * | getAudioPlayHead () const |
bool | isInterAppAudioConnected () const |
void | switchApplication () |
![]() | |
virtual | ~AudioIODevice () |
Destructor. More... | |
const String & | getName () const noexcept |
Returns the device's name, (as set in the constructor). More... | |
const String & | getTypeName () const noexcept |
Returns the type of the device. More... | |
virtual bool | hasControlPanel () const |
True if this device can show a pop-up control panel for editing its settings. More... | |
virtual bool | showControlPanel () |
Shows a device-specific control panel if there is one. More... | |
Additional Inherited Members | |
![]() | |
AudioIODevice (const String &deviceName, const String &typeName) | |
Creates a device, setting its name and type member variables. More... | |
![]() | |
String | name |
String | typeName |
|
overridevirtual |
Tries to open the device ready to play.
inputChannels | a BigInteger in which a set bit indicates that the corresponding input channel should be enabled |
outputChannels | a BigInteger in which a set bit indicates that the corresponding output channel should be enabled |
sampleRate | the sample rate to try to use - to find out which rates are available, see getAvailableSampleRates() |
bufferSizeSamples | the size of i/o buffer to use - to find out the available buffer sizes, see getAvailableBufferSizes() |
Implements juce::AudioIODevice.
|
overridevirtual |
Closes and releases the device if it's open.
Implements juce::AudioIODevice.
|
overridevirtual |
Starts the device actually playing.
This must be called after the device has been opened.
callback | the callback to use for streaming the data. |
Implements juce::AudioIODevice.
|
overridevirtual |
Stops the device playing.
Once a device has been started, this will stop it. Any pending calls to the callback class will be flushed before this method returns.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the set of sample-rates this device supports.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the set of buffer sizes that are available.
Implements juce::AudioIODevice.
|
overridevirtual |
On devices which support it, this allows automatic gain control or other mic processing to be disabled.
If the device doesn't support this operation, it'll return false.
Reimplemented from juce::AudioIODevice.
|
overridevirtual |
Returns true if the device is still calling back.
The device might mysteriously stop, so this checks whether it's still playing.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns true if the device is still open.
A device might spontaneously close itself if something goes wrong, so this checks if it's still open.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the last error that happened if anything went wrong.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the names of all the available output channels on this device.
To find out which of these are currently in use, call getActiveOutputChannels().
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the names of all the available input channels on this device.
To find out which of these are currently in use, call getActiveInputChannels().
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the default buffer-size to use.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the buffer size that the device is currently using.
If the device isn't actually open, this value doesn't really mean much.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the sample rate that the device is currently using.
If the device isn't actually open, this value doesn't really mean much.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the device's current physical bit-depth.
If the device isn't actually open, this value doesn't really mean much.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns a mask showing which of the available output channels are currently enabled.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns a mask showing which of the available input channels are currently enabled.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the device's output latency.
This is the delay in samples between a callback getting a block of data, and that data actually getting played.
Implements juce::AudioIODevice.
|
overridevirtual |
Returns the device's input latency.
This is the delay in samples between some audio actually arriving at the soundcard, and the callback getting passed this block of data.
Implements juce::AudioIODevice.
|
overridevirtualnoexcept |
Returns the number of under- or over runs reported by the OS since playback/recording has started.
This number may be different than determining the Xrun count manually (by measuring the time spent in the audio callback) as the OS may be doing some buffering internally - especially on mobile devices.
Returns -1 if playback/recording has not started yet or if getting the underrun count is not supported for this device (Android SDK 23 and lower).
Reimplemented from juce::AudioIODevice.
void juce::iOSAudioIODevice::setMidiMessageCollector | ( | MidiMessageCollector * | ) |
AudioPlayHead* juce::iOSAudioIODevice::getAudioPlayHead | ( | ) | const |
bool juce::iOSAudioIODevice::isInterAppAudioConnected | ( | ) | const |
void juce::iOSAudioIODevice::switchApplication | ( | ) |