An AudioIODeviceCallback object which streams audio through an AudioProcessor.
More...
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.
- See also
- AudioProcessor, AudioProcessorGraph
§ AudioProcessorPlayer()
AudioProcessorPlayer::AudioProcessorPlayer |
( |
bool |
doDoublePrecisionProcessing = false | ) |
|
§ ~AudioProcessorPlayer()
virtual AudioProcessorPlayer::~AudioProcessorPlayer |
( |
| ) |
|
|
virtual |
§ setProcessor()
void AudioProcessorPlayer::setProcessor |
( |
AudioProcessor * |
processorToPlay | ) |
|
§ getCurrentProcessor()
Returns the current audio processor that is being played.
§ 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.
§ setDoublePrecisionProcessing()
void AudioProcessorPlayer::setDoublePrecisionProcessing |
( |
bool |
doublePrecision | ) |
|
Switch between double and single floating point precisions processing.
The audio IO callbacks will still operate in single floating point precision, however, all internal processing including the AudioProcessor will be processed in double floating point precision if the AudioProcessor supports it (see AudioProcessor::supportsDoublePrecisionProcessing()). Otherwise, the processing will remain single precision irrespective of the parameter doublePrecision.
§ getDoublePrecisionProcessing()
bool AudioProcessorPlayer::getDoublePrecisionProcessing |
( |
| ) |
|
§ audioDeviceIOCallback()
void AudioProcessorPlayer::audioDeviceIOCallback |
( |
const float ** |
, |
|
|
int |
, |
|
|
float ** |
, |
|
|
int |
, |
|
|
int |
|
|
) |
| |
|
overridevirtual |
§ audioDeviceAboutToStart()
void AudioProcessorPlayer::audioDeviceAboutToStart |
( |
AudioIODevice * |
| ) |
|
|
overridevirtual |
§ audioDeviceStopped()
void AudioProcessorPlayer::audioDeviceStopped |
( |
| ) |
|
|
overridevirtual |
§ handleIncomingMidiMessage()
The documentation for this class was generated from the following file: