◆ JackAudioIODevice()
◆ ~JackAudioIODevice()
| juce::JackAudioIODevice::~JackAudioIODevice |
( |
| ) |
|
|
inlineoverride |
◆ close()
| void juce::JackAudioIODevice::close |
( |
| ) |
|
|
inlineoverridevirtual |
◆ errorCallback()
| void juce::JackAudioIODevice::errorCallback |
( |
const char * | msg | ) |
|
|
inlinestaticprivate |
◆ forEachClientChannel()
template<typename Fn>
| void juce::JackAudioIODevice::forEachClientChannel |
( |
const String & | clientName, |
|
|
bool | isInput, |
|
|
Fn && | fn ) |
|
inline |
◆ getActiveInputChannels()
| BigInteger juce::JackAudioIODevice::getActiveInputChannels |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a mask showing which of the available input channels are currently enabled.
- See also
- getInputChannelNames
Implements juce::AudioIODevice.
◆ getActiveOutputChannels()
| BigInteger juce::JackAudioIODevice::getActiveOutputChannels |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a mask showing which of the available output channels are currently enabled.
- See also
- getOutputChannelNames
Implements juce::AudioIODevice.
◆ getAvailableBufferSizes()
| Array< int > juce::JackAudioIODevice::getAvailableBufferSizes |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the set of buffer sizes that are available.
- See also
- getCurrentBufferSizeSamples, getDefaultBufferSize
Implements juce::AudioIODevice.
◆ getAvailableSampleRates()
| Array< double > juce::JackAudioIODevice::getAvailableSampleRates |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the set of sample-rates this device supports.
- See also
- getCurrentSampleRate
Implements juce::AudioIODevice.
◆ getChannelNames()
◆ getCurrentBitDepth()
| int juce::JackAudioIODevice::getCurrentBitDepth |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getCurrentBufferSizeSamples()
| int juce::JackAudioIODevice::getCurrentBufferSizeSamples |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getCurrentSampleRate()
| double juce::JackAudioIODevice::getCurrentSampleRate |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getDefaultBufferSize()
| int juce::JackAudioIODevice::getDefaultBufferSize |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the default buffer-size to use.
- Returns
- a number of samples
- See also
- getAvailableBufferSizes
Implements juce::AudioIODevice.
◆ getInputChannelNames()
| StringArray juce::JackAudioIODevice::getInputChannelNames |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getInputLatencyInSamples()
| int juce::JackAudioIODevice::getInputLatencyInSamples |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getLastError()
| String juce::JackAudioIODevice::getLastError |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getOutputChannelNames()
| StringArray juce::JackAudioIODevice::getOutputChannelNames |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getOutputLatencyInSamples()
| int juce::JackAudioIODevice::getOutputLatencyInSamples |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ getXRunCount()
| int juce::JackAudioIODevice::getXRunCount |
( |
| ) |
const |
|
inlineoverridevirtualnoexcept |
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.
◆ infoShutdownCallback()
| void juce::JackAudioIODevice::infoShutdownCallback |
( |
jack_status_t | code, |
|
|
const char * | reason, |
|
|
void * | arg ) |
|
inlinestaticprivate |
◆ isOpen()
| bool juce::JackAudioIODevice::isOpen |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ isPlaying()
| bool juce::JackAudioIODevice::isPlaying |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ open()
Tries to open the device ready to play.
- Parameters
-
| 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() |
- Returns
- an error description if there's a problem, or an empty string if it succeeds in opening the device
- See also
- close
Implements juce::AudioIODevice.
◆ portConnectCallback()
| void juce::JackAudioIODevice::portConnectCallback |
( |
jack_port_id_t | , |
|
|
jack_port_id_t | , |
|
|
int | , |
|
|
void * | arg ) |
|
inlinestaticprivate |
◆ process()
| void juce::JackAudioIODevice::process |
( |
const int | numSamples | ) |
|
|
inlineprivate |
◆ processCallback()
◆ shutdownCallback()
| void juce::JackAudioIODevice::shutdownCallback |
( |
void * | callbackArgument | ) |
|
|
inlinestaticprivate |
◆ start()
◆ stop()
| void juce::JackAudioIODevice::stop |
( |
| ) |
|
|
inlineoverridevirtual |
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.
◆ threadInitCallback()
| void juce::JackAudioIODevice::threadInitCallback |
( |
void * | | ) |
|
|
inlinestaticprivate |
◆ updateActivePorts()
| void juce::JackAudioIODevice::updateActivePorts |
( |
| ) |
|
|
inlineprivate |
◆ xrunCallback()
| int juce::JackAudioIODevice::xrunCallback |
( |
void * | callbackArgument | ) |
|
|
inlinestaticprivate |
◆ activeInputChannels
| BigInteger juce::JackAudioIODevice::activeInputChannels |
|
private |
◆ activeOutputChannels
| BigInteger juce::JackAudioIODevice::activeOutputChannels |
|
private |
◆ callback
◆ callbackLock
◆ client
◆ deviceIsOpen
| bool juce::JackAudioIODevice::deviceIsOpen = false |
|
private |
◆ inChans
| HeapBlock<float*> juce::JackAudioIODevice::inChans |
|
private |
◆ inputName
| String juce::JackAudioIODevice::inputName |
◆ inputPorts
| Array<jack_port_t*> juce::JackAudioIODevice::inputPorts |
|
private |
◆ lastError
| String juce::JackAudioIODevice::lastError |
|
private |
◆ mainThreadDispatcher
◆ notifyChannelsChanged
| std::function<void()> juce::JackAudioIODevice::notifyChannelsChanged |
|
private |
◆ outChans
| HeapBlock<float*> juce::JackAudioIODevice::outChans |
|
private |
◆ outputName
| String juce::JackAudioIODevice::outputName |
◆ outputPorts
| Array<jack_port_t*> juce::JackAudioIODevice::outputPorts |
|
private |
◆ totalNumberOfInputChannels
| int juce::JackAudioIODevice::totalNumberOfInputChannels = 0 |
|
private |
◆ totalNumberOfOutputChannels
| int juce::JackAudioIODevice::totalNumberOfOutputChannels = 0 |
|
private |
◆ xruns
| std::atomic<int> juce::JackAudioIODevice::xruns { 0 } |
|
private |
The documentation for this class was generated from the following file:
- /home/runner/work/lmms-fork/lmms-fork/plugins/CarlaBase/carla/source/modules/juce_audio_devices/native/juce_linux_JackAudio.cpp