Audacity  2.2.2
Public Member Functions | Public Attributes | List of all members
WaveTrackCache::Buffer Struct Reference

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 696 of file WaveTrack.h.

Constructor & Destructor Documentation

WaveTrackCache::Buffer::Buffer ( )
inline

Definition at line 701 of file WaveTrack.h.

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

Member Function Documentation

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

Definition at line 703 of file WaveTrack.h.

References len, and start.

Referenced by WaveTrackCache::Get().

703 { return start + len; }
void WaveTrackCache::Buffer::Free ( )
inline

Definition at line 702 of file WaveTrack.h.

References data, len, and start.

Referenced by WaveTrackCache::Free().

702 { data.reset(); start = 0; len = 0; }
void WaveTrackCache::Buffer::swap ( Buffer other)
inline

Definition at line 705 of file WaveTrack.h.

References data, len, and start.

Referenced by WaveTrackCache::Get().

706  {
707  data .swap ( other.data );
708  std::swap( start, other.start );
709  std::swap( len, other.len );
710  }

Member Data Documentation

Floats WaveTrackCache::Buffer::data

Definition at line 697 of file WaveTrack.h.

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

sampleCount WaveTrackCache::Buffer::len

Definition at line 699 of file WaveTrack.h.

Referenced by end(), Free(), WaveTrackCache::Get(), and swap().

sampleCount WaveTrackCache::Buffer::start

Definition at line 698 of file WaveTrack.h.

Referenced by end(), Free(), WaveTrackCache::Get(), and swap().


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