tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tracktion::engine::InputDeviceInstance::Consumer Struct Reference

Base class for classes that want to listen to an InputDevice and get a callback for each block of input. More...

#include "tracktion_InputDevice.h"

Inheritance diagram for tracktion::engine::InputDeviceInstance::Consumer:
tracktion::engine::HostedMidiInputDeviceNode tracktion::engine::MidiInputDeviceNode tracktion::engine::WaveInputDeviceNode

Public Member Functions

virtual ~Consumer ()=default
 Destructor.
 
virtual void acceptInputBuffer (choc::buffer::ChannelArrayView< float >)
 Override this to receive audio input from the device if it has any.
 
virtual void handleIncomingMidiMessage (const juce::MidiMessage &)
 Override this to receive MIDI input from the device if it has any.
 
virtual void discardRecordings (EditItemID)
 This is called when a recording is aborted so listeners should trash their temp data.
 

Detailed Description

Base class for classes that want to listen to an InputDevice and get a callback for each block of input.

Subclasses of this can be used to output live audio/MIDI or for visualisations etc.

Definition at line 370 of file tracktion_InputDevice.h.

Member Function Documentation

◆ acceptInputBuffer()

virtual void tracktion::engine::InputDeviceInstance::Consumer::acceptInputBuffer ( choc::buffer::ChannelArrayView< float )
virtual

Override this to receive audio input from the device if it has any.

Reimplemented in tracktion::engine::WaveInputDeviceNode.

Definition at line 376 of file tracktion_InputDevice.h.

◆ discardRecordings()

virtual void tracktion::engine::InputDeviceInstance::Consumer::discardRecordings ( EditItemID  )
virtual

This is called when a recording is aborted so listeners should trash their temp data.

Reimplemented in tracktion::engine::MidiInputDeviceNode.

Definition at line 382 of file tracktion_InputDevice.h.

◆ handleIncomingMidiMessage()

virtual void tracktion::engine::InputDeviceInstance::Consumer::handleIncomingMidiMessage ( const juce::MidiMessage )
virtual

Override this to receive MIDI input from the device if it has any.

Reimplemented in tracktion::engine::HostedMidiInputDeviceNode, and tracktion::engine::MidiInputDeviceNode.

Definition at line 379 of file tracktion_InputDevice.h.


The documentation for this struct was generated from the following file: