An AudioIODeviceCallback object which streams audio through an AudioProcessor. More...
Inherits AudioIODeviceCallback, and MidiInputCallback.
Public Member Functions | |
| AudioProcessorPlayer () | |
| virtual | ~AudioProcessorPlayer () |
| Destructor. | |
| void | setProcessor (AudioProcessor *processorToPlay) |
| Sets the processor that should be played. | |
| AudioProcessor * | getCurrentProcessor () const |
| Returns the current audio processor that is being played. | |
| MidiMessageCollector & | getMidiMessageCollector () |
| Returns a midi message collector that you can pass midi messages to if you want them to be injected into the midi stream that is being sent to the processor. | |
| void | audioDeviceIOCallback (const float **inputChannelData, int totalNumInputChannels, float **outputChannelData, int totalNumOutputChannels, int numSamples) |
| void | audioDeviceAboutToStart (AudioIODevice *) |
| void | audioDeviceStopped () |
| void | handleIncomingMidiMessage (MidiInput *, const MidiMessage &) |
Public Member Functions inherited from AudioIODeviceCallback | |
| virtual | ~AudioIODeviceCallback () |
| Destructor. | |
| virtual void | audioDeviceError (const String &errorMessage) |
| This can be overridden to be told if the device generates an error while operating. | |
Public Member Functions inherited from MidiInputCallback | |
| virtual | ~MidiInputCallback () |
| Destructor. | |
| virtual void | handlePartialSysexMessage (MidiInput *source, const uint8 *messageData, int numBytesSoFar, double timestamp) |
| Notification sent each time a packet of a multi-packet sysex message arrives. | |
An AudioIODeviceCallback object which streams audio through an AudioProcessor.
To use one of these, just make it the callback used by your AudioIODevice, and give it a processor to use by calling setProcessor().
It's also a MidiInputCallback, so you can connect it to both an audio and midi input to send both streams through the processor.
| AudioProcessorPlayer::AudioProcessorPlayer | ( | ) |
|
virtual |
Destructor.
| void AudioProcessorPlayer::setProcessor | ( | AudioProcessor * | processorToPlay | ) |
Sets the processor that should be played.
The processor that is passed in will not be deleted or owned by this object. To stop anything playing, pass in 0 to this method.
Referenced by StandaloneFilterWindow::resetFilter(), and StandaloneFilterWindow::StandaloneFilterWindow().
| AudioProcessor* AudioProcessorPlayer::getCurrentProcessor | ( | ) | const |
Returns the current audio processor that is being played.
| MidiMessageCollector& AudioProcessorPlayer::getMidiMessageCollector | ( | ) |
Returns a midi message collector that you can pass midi messages to if you want them to be injected into the midi stream that is being sent to the processor.
|
virtual |
Implements AudioIODeviceCallback.
|
virtual |
Implements AudioIODeviceCallback.
|
virtual |
Implements AudioIODeviceCallback.
|
virtual |
Implements MidiInputCallback.