|
TracktionEngine
|
Represents an input device. More...
#include <tracktion_InputDevice.h>
Public Types | |
| enum | DeviceType { waveDevice , trackWaveDevice , physicalMidiDevice , virtualMidiDevice , trackMidiDevice } |
| enum to allow quick querying of the device type. More... | |
| enum class | MonitorMode { off , automatic , on } |
| Enum to describe monitor modes. More... | |
Public Member Functions | |
| InputDevice (Engine &, juce::String name, juce::String deviceID) | |
| ~InputDevice () override | |
| virtual DeviceType | getDeviceType () const =0 |
| bool | isTrackDevice () const override |
| virtual bool | isAvailableToEdit () const |
| bool | isMidi () const override |
| MonitorMode | getMonitorMode () const |
| void | setMonitorMode (MonitorMode) |
| virtual InputDeviceInstance * | createInstance (EditPlaybackContext &)=0 |
| Creates an instance to use for a given playback context. | |
| virtual void | masterTimeUpdate (double time)=0 |
| This is a bit of a hack but allows the time for MIDI devices to be set through the base class interface. | |
| virtual void | updateRetrospectiveBufferLength (double length)=0 |
| virtual void | saveProps ()=0 |
Static Public Member Functions | |
| static void | setRetrospectiveLock (Engine &, const juce::Array< InputDeviceInstance * > &, bool lock) |
Public Attributes | |
| LevelMeasurer | levelMeasurer |
Protected Attributes | |
| MonitorMode | monitorMode = MonitorMode::automatic |
| MonitorMode | defaultMonitorMode = MonitorMode::automatic |
| bool | retrospectiveRecordLock = false |
Represents an input device.
A single InputDevice object exists for each device in the system. For each InputDevice, there may be multiple InputDeviceInstance objects, for all the active EditPlaybackContexts
|
strong |
| engine::InputDevice::InputDevice | ( | Engine & | , |
| juce::String | name, | ||
| juce::String | deviceID | ||
| ) |
|
override |
|
pure virtual |
Implemented in engine::PhysicalMidiInputDevice, engine::VirtualMidiInputDevice, and engine::WaveInputDevice.
|
override |
|
virtual |
Reimplemented in engine::PhysicalMidiInputDevice.
|
override |
| MonitorMode engine::InputDevice::getMonitorMode | ( | ) | const |
| void engine::InputDevice::setMonitorMode | ( | MonitorMode | ) |
|
pure virtual |
Creates an instance to use for a given playback context.
Implemented in engine::PhysicalMidiInputDevice, engine::VirtualMidiInputDevice, and engine::WaveInputDevice.
|
pure virtual |
This is a bit of a hack but allows the time for MIDI devices to be set through the base class interface.
Implemented in engine::MidiInputDevice, and engine::WaveInputDevice.
|
static |
|
pure virtual |
Implemented in engine::MidiInputDevice, and engine::WaveInputDevice.
|
pure virtual |
Implemented in engine::PhysicalMidiInputDevice, and engine::VirtualMidiInputDevice.
| LevelMeasurer engine::InputDevice::levelMeasurer |
|
protected |
|
protected |
|
protected |