1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessor: Update documentation to make implementation requirements clearer for MIDI-related member functions

This commit is contained in:
reuk 2024-10-17 18:36:06 +01:00
parent 4a87eb3c40
commit 1f71b5f4fb
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -852,16 +852,36 @@ public:
/** Returns the length of the processor's tail, in seconds. */
virtual double getTailLengthSeconds() const = 0;
/** Returns true if the processor wants MIDI messages. */
/** Returns true if the processor wants MIDI messages.
This must return the same value every time it is called.
This may be called by the audio thread, so this should be fast.
Ideally, just return a constant.
*/
virtual bool acceptsMidi() const = 0;
/** Returns true if the processor produces MIDI messages. */
/** Returns true if the processor produces MIDI messages.
This must return the same value every time it is called.
This may be called by the audio thread, so this should be fast.
Ideally, just return a constant.
*/
virtual bool producesMidi() const = 0;
/** Returns true if the processor supports MPE. */
/** Returns true if the processor supports MPE.
This must return the same value every time it is called.
This may be called by the audio thread, so this should be fast.
Ideally, just return a constant.
*/
virtual bool supportsMPE() const { return false; }
/** Returns true if this is a MIDI effect plug-in and does no audio processing. */
/** Returns true if this is a MIDI effect plug-in and does no audio processing.
This must return the same value every time it is called.
This may be called by the audio thread, so this should be fast.
Ideally, just return a constant.
*/
virtual bool isMidiEffect() const { return false; }
//==============================================================================