Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
WaveTrackCache::Buffer Struct Reference
Collaboration diagram for WaveTrackCache::Buffer:
[legend]

Public Member Functions

 Buffer ()
 
void Free ()
 
sampleCount end () const
 
void swap (Buffer &other)
 

Public Attributes

Floats data
 
sampleCount start
 
sampleCount len
 

Detailed Description

Definition at line 666 of file WaveTrack.h.

Constructor & Destructor Documentation

◆ Buffer()

WaveTrackCache::Buffer::Buffer ( )
inline

Definition at line 671 of file WaveTrack.h.

671 : start(0), len(0) {}

Member Function Documentation

◆ end()

sampleCount WaveTrackCache::Buffer::end ( ) const
inline

Definition at line 673 of file WaveTrack.h.

673 { return start + len; }

Referenced by WaveTrackCache::GetFloats().

Here is the caller graph for this function:

◆ Free()

void WaveTrackCache::Buffer::Free ( )
inline

Definition at line 672 of file WaveTrack.h.

672 { data.reset(); start = 0; len = 0; }

Referenced by WaveTrackCache::Free().

Here is the caller graph for this function:

◆ swap()

void WaveTrackCache::Buffer::swap ( Buffer other)
inline

Definition at line 675 of file WaveTrack.h.

676  {
677  data .swap ( other.data );
678  std::swap( start, other.start );
679  std::swap( len, other.len );
680  }

References data, len, start, and anonymous_namespace{NoteTrack.cpp}::swap().

Referenced by WaveTrackCache::GetFloats().

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

Member Data Documentation

◆ data

Floats WaveTrackCache::Buffer::data

Definition at line 667 of file WaveTrack.h.

Referenced by WaveTrackCache::GetFloats(), WaveTrackCache::SetTrack(), and swap().

◆ len

sampleCount WaveTrackCache::Buffer::len

Definition at line 669 of file WaveTrack.h.

Referenced by WaveTrackCache::GetFloats(), and swap().

◆ start

sampleCount WaveTrackCache::Buffer::start

Definition at line 668 of file WaveTrack.h.

Referenced by WaveTrackCache::GetFloats(), and swap().


The documentation for this struct was generated from the following file:
WaveTrackCache::Buffer::len
sampleCount len
Definition: WaveTrack.h:669
anonymous_namespace{NoteTrack.cpp}::swap
void swap(std::unique_ptr< Alg_seq > &a, std::unique_ptr< Alg_seq > &b)
Definition: NoteTrack.cpp:735
WaveTrackCache::Buffer::data
Floats data
Definition: WaveTrack.h:667
WaveTrackCache::Buffer::start
sampleCount start
Definition: WaveTrack.h:668