Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
RecordingSchedule Struct Reference

#include <PlaybackSchedule.h>

Collaboration diagram for RecordingSchedule:
[legend]

Public Member Functions

double TotalCorrection () const
 
double ToConsume () const
 
double Consumed () const
 
double ToDiscard () const
 

Public Attributes

double mPreRoll {}
 
double mLatencyCorrection {}
 
double mDuration {}
 
PRCrossfadeData mCrossfadeData
 
double mPosition {}
 
bool mLatencyCorrected {}
 

Detailed Description

Definition at line 29 of file PlaybackSchedule.h.

Member Function Documentation

◆ Consumed()

double RecordingSchedule::Consumed ( ) const

Definition at line 258 of file PlaybackSchedule.cpp.

259{
260 return std::max( 0.0, mPosition + TotalCorrection() );
261}
double TotalCorrection() const

References mPosition, and TotalCorrection().

Referenced by AudioIO::DrainRecordBuffers(), and ToConsume().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToConsume()

double RecordingSchedule::ToConsume ( ) const

Definition at line 253 of file PlaybackSchedule.cpp.

254{
255 return mDuration - Consumed();
256}
double Consumed() const

References Consumed(), and mDuration.

Referenced by AudioIO::DrainRecordBuffers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToDiscard()

double RecordingSchedule::ToDiscard ( ) const

Definition at line 263 of file PlaybackSchedule.cpp.

264{
265 return std::max(0.0, -( mPosition + TotalCorrection() ) );
266}

References mPosition, and TotalCorrection().

Referenced by AudioIO::DrainRecordBuffers().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TotalCorrection()

double RecordingSchedule::TotalCorrection ( ) const
inline

Definition at line 40 of file PlaybackSchedule.h.

References mLatencyCorrection, and mPreRoll.

Referenced by Consumed(), AudioIO::DrainRecordBuffers(), and ToDiscard().

Here is the caller graph for this function:

Member Data Documentation

◆ mCrossfadeData

PRCrossfadeData RecordingSchedule::mCrossfadeData

◆ mDuration

double RecordingSchedule::mDuration {}

Definition at line 32 of file PlaybackSchedule.h.

Referenced by AudioIO::StartStream(), and ToConsume().

◆ mLatencyCorrected

bool RecordingSchedule::mLatencyCorrected {}

Definition at line 38 of file PlaybackSchedule.h.

Referenced by AudioIO::DrainRecordBuffers().

◆ mLatencyCorrection

double RecordingSchedule::mLatencyCorrection {}

◆ mPosition

double RecordingSchedule::mPosition {}

Definition at line 37 of file PlaybackSchedule.h.

Referenced by Consumed(), AudioIO::DrainRecordBuffers(), and ToDiscard().

◆ mPreRoll

double RecordingSchedule::mPreRoll {}

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