Audacity  2.2.2
Public Member Functions | Public Attributes | List of all members
AudioIO::ScrubQueue::Duration Struct Reference

Public Member Functions

 Duration (ScrubQueue &queue_)
 
 ~Duration ()
 
void Cancel ()
 

Public Attributes

ScrubQueuequeue
 
const wxLongLong clockTime { ::wxGetLocalTimeMillis() }
 
const sampleCount duration
 
bool cancelled { false }
 

Detailed Description

Definition at line 944 of file AudioIO.cpp.

Constructor & Destructor Documentation

AudioIO::ScrubQueue::Duration::Duration ( ScrubQueue queue_)
inline

Definition at line 945 of file AudioIO.cpp.

945 : queue(queue_) {}
AudioIO::ScrubQueue::Duration::~Duration ( )
inline

Definition at line 946 of file AudioIO.cpp.

References cancelled, clockTime, AudioIO::ScrubQueue::mLastScrubTimeMillis, and queue.

947  {
948  if(!cancelled)
950  }
wxLongLong mLastScrubTimeMillis
Definition: AudioIO.cpp:968
const wxLongLong clockTime
Definition: AudioIO.cpp:955

Member Function Documentation

void AudioIO::ScrubQueue::Duration::Cancel ( )
inline

Definition at line 952 of file AudioIO.cpp.

References cancelled.

952 { cancelled = true; }

Member Data Documentation

bool AudioIO::ScrubQueue::Duration::cancelled { false }

Definition at line 959 of file AudioIO.cpp.

Referenced by Cancel(), and ~Duration().

const wxLongLong AudioIO::ScrubQueue::Duration::clockTime { ::wxGetLocalTimeMillis() }

Definition at line 955 of file AudioIO.cpp.

Referenced by ~Duration().

const sampleCount AudioIO::ScrubQueue::Duration::duration
Initial value:
{ static_cast<long long>
(queue.mRate * (clockTime - queue.mLastScrubTimeMillis).ToDouble() / 1000.0)
}

Definition at line 956 of file AudioIO.cpp.

Referenced by AudioIO::ScrubQueue::Producer().

ScrubQueue& AudioIO::ScrubQueue::Duration::queue

Definition at line 954 of file AudioIO.cpp.

Referenced by ~Duration().


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