Audacity  3.0.3
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 131 of file PlaybackSchedule.h.

Member Function Documentation

◆ Consumed()

double RecordingSchedule::Consumed ( ) const

Definition at line 374 of file PlaybackSchedule.cpp.

375 {
376  return std::max( 0.0, mPosition + TotalCorrection() );
377 }

Referenced by AudioIO::DrainRecordBuffers().

Here is the caller graph for this function:

◆ ToConsume()

double RecordingSchedule::ToConsume ( ) const

Definition at line 369 of file PlaybackSchedule.cpp.

370 {
371  return mDuration - Consumed();
372 }

Referenced by AudioIO::DrainRecordBuffers().

Here is the caller graph for this function:

◆ ToDiscard()

double RecordingSchedule::ToDiscard ( ) const

Definition at line 379 of file PlaybackSchedule.cpp.

380 {
381  return std::max(0.0, -( mPosition + TotalCorrection() ) );
382 }

Referenced by AudioIO::DrainRecordBuffers().

Here is the caller graph for this function:

◆ TotalCorrection()

double RecordingSchedule::TotalCorrection ( ) const
inline

Definition at line 142 of file PlaybackSchedule.h.

142 { return mLatencyCorrection - mPreRoll; }

References mLatencyCorrection, and mPreRoll.

Referenced by AudioIO::DrainRecordBuffers().

Here is the caller graph for this function:

Member Data Documentation

◆ mCrossfadeData

PRCrossfadeData RecordingSchedule::mCrossfadeData

◆ mDuration

double RecordingSchedule::mDuration {}

Definition at line 134 of file PlaybackSchedule.h.

Referenced by AudioIO::StartStream().

◆ mLatencyCorrected

bool RecordingSchedule::mLatencyCorrected {}

Definition at line 140 of file PlaybackSchedule.h.

Referenced by AudioIO::DrainRecordBuffers().

◆ mLatencyCorrection

double RecordingSchedule::mLatencyCorrection {}

◆ mPosition

double RecordingSchedule::mPosition {}

Definition at line 139 of file PlaybackSchedule.h.

Referenced by AudioIO::DrainRecordBuffers().

◆ mPreRoll

double RecordingSchedule::mPreRoll {}

The documentation for this struct was generated from the following files:
RecordingSchedule::mLatencyCorrection
double mLatencyCorrection
Definition: PlaybackSchedule.h:133
RecordingSchedule::mPosition
double mPosition
Definition: PlaybackSchedule.h:139
RecordingSchedule::TotalCorrection
double TotalCorrection() const
Definition: PlaybackSchedule.h:142
RecordingSchedule::Consumed
double Consumed() const
Definition: PlaybackSchedule.cpp:374
RecordingSchedule::mDuration
double mDuration
Definition: PlaybackSchedule.h:134
RecordingSchedule::mPreRoll
double mPreRoll
Definition: PlaybackSchedule.h:132