◆ CallbackHandler()
◆ audioDeviceAboutToStart()
| void juce::AudioDeviceManager::CallbackHandler::audioDeviceAboutToStart |
( |
AudioIODevice * | device | ) |
|
|
inlineoverrideprivatevirtual |
Called to indicate that the device is about to start calling back.
This will be called just before the audio callbacks begin, either when this callback has just been added to an audio device, or after the device has been restarted because of a sample-rate or block-size change.
You can use this opportunity to find out the sample rate and block size that the device is going to use by calling the AudioIODevice::getCurrentSampleRate() and AudioIODevice::getCurrentBufferSizeSamples() on the supplied pointer.
- Parameters
-
| device | the audio IO device that will be used to drive the callback. Note that if you're going to store this this pointer, it is only valid until the next time that audioDeviceStopped is called. |
Implements juce::AudioIODeviceCallback.
◆ audioDeviceError()
| void juce::AudioDeviceManager::CallbackHandler::audioDeviceError |
( |
const String & | errorMessage | ) |
|
|
inlineoverrideprivatevirtual |
This can be overridden to be told if the device generates an error while operating. Be aware that this could be called by any thread! And not all devices perform this callback.
Reimplemented from juce::AudioIODeviceCallback.
◆ audioDeviceIOCallbackWithContext()
|
|
inlineoverrideprivatevirtual |
The same as audioDeviceIOCallback(), but with an additional context argument.
The default implementation of this function will call audioDeviceIOCallback(), but you can override this function if you need to make use of the context information.
Reimplemented from juce::AudioIODeviceCallback.
◆ audioDeviceListChanged()
| void juce::AudioDeviceManager::CallbackHandler::audioDeviceListChanged |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ audioDeviceStopped()
| void juce::AudioDeviceManager::CallbackHandler::audioDeviceStopped |
( |
| ) |
|
|
inlineoverrideprivatevirtual |
◆ handleIncomingMidiMessage()
|
|
inlineoverrideprivatevirtual |
Receives an incoming message.
A MidiInput object will call this method when a midi event arrives. It'll be called on a high-priority system thread, so avoid doing anything time-consuming in here, and avoid making any UI calls. You might find the MidiBuffer class helpful for queueing incoming messages for use later.
- Parameters
-
| source | the MidiInput object that generated the message |
| message | the incoming message. The message's timestamp is set to a value equivalent to (Time::getMillisecondCounter() / 1000.0) to specify the time when the message arrived |
Implements juce::MidiInputCallback.
◆ owner
The documentation for this class was generated from the following file: