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

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext Struct Reference
Inheritance diagram for tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext:
tracktion::engine::InputDeviceInstance::RecordingContext

Public Member Functions

 WaveRecordingContext (EditPlaybackContext &epc, EditItemID targetID_, const juce::File &f)
 
void addBlockToRecord (const juce::AudioBuffer< float > &buffer, int start, int numSamples)
 
void closeFileWriter ()
 Blocks until there are no more pending samples to be written to this context.
 
- Public Member Functions inherited from tracktion::engine::InputDeviceInstance::RecordingContext
virtual ~RecordingContext ()=default
 Destructor.
 

Public Attributes

EditPlaybackContexteditPlaybackContext
 
Engineengine
 
juce::File file
 
double sampleRate
 
TimeRange punchTimes
 The Edit time range that the recorded clip should start/stop.
 
TimeRange muteTimes
 The Edit time range that the destination track should be muted for.
 
TimeRange recordingBlockRange
 The Edit time range that blocks should be recorded for.
 
TimePosition unloopedStopTime
 When the reecording is stopped, this should be the end time.
 
TimeDuration adjustDurationAtStart
 
std::atomic< bool > hasHitThreshold
 
bool firstRecCallback
 
bool recordingWithPunch
 
int adjustSamples
 
std::atomic< bool > muteTargetNow
 
const bool muteTrackContentsWhilstRecording
 
std::unique_ptr< AudioFileWriterfileWriter
 
DiskSpaceCheckTask diskSpaceChecker
 
RecordingThumbnailManager::Thumbnail::Ptr thumbnail
 
WaveInputRecordingThread::ScopedInitialiser threadInitialiser
 
const detail::ScopedActiveRecordingDevice scopedActiveRecordingDevice
 
std::function< void(tl::expected< Clip::Array, juce::String >)> stopCallback
 
StopRecordingParameters stopParams
 
- Public Attributes inherited from tracktion::engine::InputDeviceInstance::RecordingContext
const EditItemID targetID
 The ID of the recording target, track or clip.
 

Additional Inherited Members

- Protected Member Functions inherited from tracktion::engine::InputDeviceInstance::RecordingContext
 RecordingContext (EditItemID targetID_)
 

Detailed Description

Definition at line 619 of file tracktion_WaveInputDevice.cpp.

Constructor & Destructor Documentation

◆ WaveRecordingContext()

tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::WaveRecordingContext ( EditPlaybackContext epc,
EditItemID  targetID_,
const juce::File f 
)

Definition at line 621 of file tracktion_WaveInputDevice.cpp.

Member Function Documentation

◆ addBlockToRecord()

void tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::addBlockToRecord ( const juce::AudioBuffer< float > &  buffer,
int  start,
int  numSamples 
)

Definition at line 651 of file tracktion_WaveInputDevice.cpp.

◆ closeFileWriter()

void tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::closeFileWriter ( )

Blocks until there are no more pending samples to be written to this context.

After the call, fileWriter will be nullptr and no more blocks should be added to this.

Definition at line 661 of file tracktion_WaveInputDevice.cpp.

Member Data Documentation

◆ adjustDurationAtStart

TimeDuration tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::adjustDurationAtStart

Definition at line 635 of file tracktion_WaveInputDevice.cpp.

◆ adjustSamples

int tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::adjustSamples

Definition at line 638 of file tracktion_WaveInputDevice.cpp.

◆ diskSpaceChecker

DiskSpaceCheckTask tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::diskSpaceChecker

Definition at line 643 of file tracktion_WaveInputDevice.cpp.

◆ editPlaybackContext

EditPlaybackContext& tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::editPlaybackContext

Definition at line 626 of file tracktion_WaveInputDevice.cpp.

◆ engine

Engine& tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::engine

Definition at line 627 of file tracktion_WaveInputDevice.cpp.

◆ file

juce::File tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::file

Definition at line 628 of file tracktion_WaveInputDevice.cpp.

◆ fileWriter

std::unique_ptr<AudioFileWriter> tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::fileWriter

Definition at line 642 of file tracktion_WaveInputDevice.cpp.

◆ firstRecCallback

bool tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::firstRecCallback

Definition at line 637 of file tracktion_WaveInputDevice.cpp.

◆ hasHitThreshold

std::atomic<bool> tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::hasHitThreshold

Definition at line 636 of file tracktion_WaveInputDevice.cpp.

◆ muteTargetNow

std::atomic<bool> tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::muteTargetNow

Definition at line 639 of file tracktion_WaveInputDevice.cpp.

◆ muteTimes

TimeRange tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::muteTimes

The Edit time range that the destination track should be muted for.

Definition at line 631 of file tracktion_WaveInputDevice.cpp.

◆ muteTrackContentsWhilstRecording

const bool tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::muteTrackContentsWhilstRecording

Definition at line 640 of file tracktion_WaveInputDevice.cpp.

◆ punchTimes

TimeRange tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::punchTimes

The Edit time range that the recorded clip should start/stop.

Definition at line 630 of file tracktion_WaveInputDevice.cpp.

◆ recordingBlockRange

TimeRange tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::recordingBlockRange

The Edit time range that blocks should be recorded for.

This might be different to the punch range as it accounts for device and graph latency.

Definition at line 632 of file tracktion_WaveInputDevice.cpp.

◆ recordingWithPunch

bool tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::recordingWithPunch

Definition at line 637 of file tracktion_WaveInputDevice.cpp.

◆ sampleRate

double tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::sampleRate

Definition at line 629 of file tracktion_WaveInputDevice.cpp.

◆ scopedActiveRecordingDevice

const detail::ScopedActiveRecordingDevice tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::scopedActiveRecordingDevice

Definition at line 646 of file tracktion_WaveInputDevice.cpp.

◆ stopCallback

std::function<void (tl::expected<Clip::Array, juce::String>)> tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::stopCallback

Definition at line 648 of file tracktion_WaveInputDevice.cpp.

◆ stopParams

StopRecordingParameters tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::stopParams

Definition at line 649 of file tracktion_WaveInputDevice.cpp.

◆ threadInitialiser

WaveInputRecordingThread::ScopedInitialiser tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::threadInitialiser

Definition at line 645 of file tracktion_WaveInputDevice.cpp.

◆ thumbnail

RecordingThumbnailManager::Thumbnail::Ptr tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::thumbnail

Definition at line 644 of file tracktion_WaveInputDevice.cpp.

◆ unloopedStopTime

TimePosition tracktion::engine::WaveInputDeviceInstance::WaveRecordingContext::unloopedStopTime

When the reecording is stopped, this should be the end time.

Definition at line 634 of file tracktion_WaveInputDevice.cpp.


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