◆ JackAudioIODevice()
◆ ~JackAudioIODevice()
JackAudioIODevice::~JackAudioIODevice |
( |
| ) |
|
|
inline |
◆ close()
void JackAudioIODevice::close |
( |
| ) |
|
|
inlineoverridevirtual |
Closes and releases the device if it's open.
Implements AudioIODevice.
◆ getActiveInputChannels()
BigInteger JackAudioIODevice::getActiveInputChannels |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getActiveOutputChannels()
BigInteger JackAudioIODevice::getActiveOutputChannels |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getAvailableBufferSizes()
Array<int> JackAudioIODevice::getAvailableBufferSizes |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getAvailableSampleRates()
Array<double> JackAudioIODevice::getAvailableSampleRates |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getChannelNames()
StringArray JackAudioIODevice::getChannelNames |
( |
bool |
forInput | ) |
const |
|
inline |
◆ getCurrentBitDepth()
int 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 AudioIODevice.
◆ getCurrentBufferSizeSamples()
int 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 AudioIODevice.
◆ getCurrentSampleRate()
double 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 AudioIODevice.
◆ getDefaultBufferSize()
int JackAudioIODevice::getDefaultBufferSize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getInputChannelNames()
StringArray JackAudioIODevice::getInputChannelNames |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getInputLatencyInSamples()
int 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 AudioIODevice.
◆ getLastError()
String JackAudioIODevice::getLastError |
( |
| ) |
|
|
inlineoverridevirtual |
Returns the last error that happened if anything went wrong.
Implements AudioIODevice.
◆ getOutputChannelNames()
StringArray JackAudioIODevice::getOutputChannelNames |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getOutputLatencyInSamples()
int 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 AudioIODevice.
◆ isOpen()
bool 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 AudioIODevice.
◆ isPlaying()
bool 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 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 AudioIODevice.
◆ start()
Starts the device actually playing.
This must be called after the device has been opened.
- Parameters
-
callback | the callback to use for streaming the data. |
- See also
- AudioIODeviceCallback, open
Implements AudioIODevice.
◆ stop()
void 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 AudioIODevice.
◆ inputId
String JackAudioIODevice::inputId |
◆ outputId
String JackAudioIODevice::outputId |
The documentation for this class was generated from the following file: