|
TracktionEngine
|
A (virtual) audio input device. More...
#include <tracktion_WaveInputDevice.h>
Public Member Functions | |
| WaveInputDevice (Engine &, const WaveDeviceDescription &, DeviceType) | |
| ~WaveInputDevice () override | |
| juce::StringArray | getRecordFormatNames () |
| void | resetToDefault () |
| void | setEnabled (bool) override |
| DeviceType | getDeviceType () const override |
| juce::String | getDeviceTypeDescription () const override |
| InputDeviceInstance * | createInstance (EditPlaybackContext &) override |
| Creates an instance to use for a given playback context. | |
| void | setRecordAdjustment (TimeDuration) |
| TimeDuration | getRecordAdjustment () const |
| void | setRecordAdjustmentMs (double ms) |
| double | getRecordAdjustmentMs () const |
| bool | isStereoPair () const |
| void | setStereoPair (bool) |
| juce::PopupMenu | createChannelGroupMenu (bool includeSetAllChannelsOptions) |
| juce::Array< int > | getAvailableBitDepths () const |
| void | setBitDepth (int) |
| int | getBitDepth () const |
| void | checkBitDepth () |
| void | setInputGainDb (float gain) |
| float | getInputGainDb () const |
| void | setRecordTriggerDb (float) |
| float | getRecordTriggerDb () const |
| void | setMeterGateClosed (bool) |
| Closes or opens the input meter gate. | |
| bool | isMeterGateClosed () const noexcept |
| bool | isAnyRecordingActive () const |
| True if any of this device's instances currently has an active recording context. | |
| juce::String | getFilenameMask () const |
| void | setFilenameMask (const juce::String &) |
| void | setFilenameMaskToDefault () |
| void | setOutputFormat (const juce::String &) |
| juce::String | getOutputFormat () const |
| void | setMergeMode (const juce::String &) |
| juce::String | getMergeMode () const |
| const ChannelConfiguration & | getChannels () const noexcept |
| const juce::AudioChannelSet & | getChannelSet () const noexcept |
| void | setChannelConfiguration (const ChannelConfiguration &) |
| Updates the channel configuration for track devices. | |
| void | masterTimeUpdate (double) override |
| This is a bit of a hack but allows the time for MIDI devices to be set through the base class interface. | |
| void | consumeNextAudioBlock (const float *const *allChannels, int numChannels, int numSamples, double streamTime) |
| RetrospectiveRecordBuffer * | getRetrospectiveRecordBuffer () |
| void | updateRetrospectiveBufferLength (double length) override |
Public Member Functions inherited from engine::InputDevice | |
| InputDevice (Engine &, juce::String name, juce::String deviceID) | |
| ~InputDevice () override | |
| bool | isTrackDevice () const override |
| virtual bool | isAvailableToEdit () const |
| bool | isMidi () const override |
| MonitorMode | getMonitorMode () const |
| void | setMonitorMode (MonitorMode) |
Static Public Member Functions | |
| static juce::StringArray | getMergeModes () |
Static Public Member Functions inherited from engine::InputDevice | |
| static void | setRetrospectiveLock (Engine &, const juce::Array< InputDeviceInstance * > &, bool lock) |
Public Attributes | |
| WaveDeviceDescription | deviceDescription |
Public Attributes inherited from engine::InputDevice | |
| LevelMeasurer | levelMeasurer |
Protected Member Functions | |
| juce::String | openDevice () |
| void | closeDevice () |
Additional Inherited Members | |
Public Types inherited from engine::InputDevice | |
| 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... | |
Protected Attributes inherited from engine::InputDevice | |
| MonitorMode | monitorMode = MonitorMode::automatic |
| MonitorMode | defaultMonitorMode = MonitorMode::automatic |
| bool | retrospectiveRecordLock = false |
A (virtual) audio input device.
There'll be one or more instances of these, each one representing a group of channels from a physical device.
| engine::WaveInputDevice::WaveInputDevice | ( | Engine & | , |
| const WaveDeviceDescription & | , | ||
| DeviceType | |||
| ) |
|
override |
|
static |
| juce::StringArray engine::WaveInputDevice::getRecordFormatNames | ( | ) |
| void engine::WaveInputDevice::resetToDefault | ( | ) |
|
override |
|
overridevirtual |
Implements engine::InputDevice.
|
override |
|
overridevirtual |
Creates an instance to use for a given playback context.
Implements engine::InputDevice.
| void engine::WaveInputDevice::setRecordAdjustment | ( | TimeDuration | ) |
| TimeDuration engine::WaveInputDevice::getRecordAdjustment | ( | ) | const |
| void engine::WaveInputDevice::setRecordAdjustmentMs | ( | double | ms | ) |
| double engine::WaveInputDevice::getRecordAdjustmentMs | ( | ) | const |
| bool engine::WaveInputDevice::isStereoPair | ( | ) | const |
| void engine::WaveInputDevice::setStereoPair | ( | bool | ) |
| juce::PopupMenu engine::WaveInputDevice::createChannelGroupMenu | ( | bool | includeSetAllChannelsOptions | ) |
| juce::Array< int > engine::WaveInputDevice::getAvailableBitDepths | ( | ) | const |
| void engine::WaveInputDevice::setBitDepth | ( | int | ) |
| int engine::WaveInputDevice::getBitDepth | ( | ) | const |
| void engine::WaveInputDevice::checkBitDepth | ( | ) |
| void engine::WaveInputDevice::setInputGainDb | ( | float | gain | ) |
| float engine::WaveInputDevice::getInputGainDb | ( | ) | const |
| void engine::WaveInputDevice::setRecordTriggerDb | ( | float | ) |
| float engine::WaveInputDevice::getRecordTriggerDb | ( | ) | const |
| void engine::WaveInputDevice::setMeterGateClosed | ( | bool | ) |
Closes or opens the input meter gate.
When closed, the level meter is suppressed until the input level exceeds the Record Trigger Level, at which point the gate opens automatically and stays open until closed again. This lets the user audition the trigger threshold without actually recording. Also closed automatically when recording starts on a context whose trigger level is meaningful.
|
noexcept |
| bool engine::WaveInputDevice::isAnyRecordingActive | ( | ) | const |
True if any of this device's instances currently has an active recording context.
Safe to call from the message thread.
| juce::String engine::WaveInputDevice::getFilenameMask | ( | ) | const |
| void engine::WaveInputDevice::setFilenameMask | ( | const juce::String & | ) |
| void engine::WaveInputDevice::setFilenameMaskToDefault | ( | ) |
| void engine::WaveInputDevice::setOutputFormat | ( | const juce::String & | ) |
| juce::String engine::WaveInputDevice::getOutputFormat | ( | ) | const |
| void engine::WaveInputDevice::setMergeMode | ( | const juce::String & | ) |
| juce::String engine::WaveInputDevice::getMergeMode | ( | ) | const |
|
noexcept |
|
noexcept |
| void engine::WaveInputDevice::setChannelConfiguration | ( | const ChannelConfiguration & | ) |
Updates the channel configuration for track devices.
Call this before recording to match the source track's channel layout.
|
overridevirtual |
This is a bit of a hack but allows the time for MIDI devices to be set through the base class interface.
Implements engine::InputDevice.
| void engine::WaveInputDevice::consumeNextAudioBlock | ( | const float *const * | allChannels, |
| int | numChannels, | ||
| int | numSamples, | ||
| double | streamTime | ||
| ) |
| RetrospectiveRecordBuffer * engine::WaveInputDevice::getRetrospectiveRecordBuffer | ( | ) |
|
overridevirtual |
Implements engine::InputDevice.
|
protected |
|
protected |
| WaveDeviceDescription engine::WaveInputDevice::deviceDescription |