Audacity  3.0.3
Public Member Functions | Public Attributes | List of all members
WaveCache Class Reference

Cache used with WaveClip to cache wave information (for drawing). More...

Collaboration diagram for WaveCache:
[legend]

Public Member Functions

 WaveCache ()
 
 WaveCache (size_t len_, double pixelsPerSecond, double rate_, double t0, int dirty_)
 
 ~WaveCache ()
 

Public Attributes

int dirty
 
const size_t len { 0 }
 
const double start
 
const double pps
 
const int rate
 
std::vector< sampleCountwhere
 
std::vector< float > min
 
std::vector< float > max
 
std::vector< float > rms
 
std::vector< int > bl
 

Detailed Description

Cache used with WaveClip to cache wave information (for drawing).

Definition at line 47 of file WaveClip.cpp.

Constructor & Destructor Documentation

◆ WaveCache() [1/2]

WaveCache::WaveCache ( )
inline

Definition at line 49 of file WaveClip.cpp.

50  : dirty(-1)
51  , start(-1)
52  , pps(0)
53  , rate(-1)
54  , where(0)
55  , min(0)
56  , max(0)
57  , rms(0)
58  , bl(0)
59  {
60  }

◆ WaveCache() [2/2]

WaveCache::WaveCache ( size_t  len_,
double  pixelsPerSecond,
double  rate_,
double  t0,
int  dirty_ 
)
inline

Definition at line 62 of file WaveClip.cpp.

63  : dirty(dirty_)
64  , len(len_)
65  , start(t0)
66  , pps(pixelsPerSecond)
67  , rate(rate_)
68  , where(1 + len)
69  , min(len)
70  , max(len)
71  , rms(len)
72  , bl(len)
73  {
74  }

◆ ~WaveCache()

WaveCache::~WaveCache ( )
inline

Definition at line 76 of file WaveClip.cpp.

77  {
78  }

Member Data Documentation

◆ bl

std::vector<int> WaveCache::bl

Definition at line 89 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().

◆ dirty

int WaveCache::dirty

Definition at line 80 of file WaveClip.cpp.

◆ len

const size_t WaveCache::len { 0 }

Definition at line 81 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().

◆ max

std::vector<float> WaveCache::max

Definition at line 87 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().

◆ min

std::vector<float> WaveCache::min

Definition at line 86 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().

◆ pps

const double WaveCache::pps

Definition at line 83 of file WaveClip.cpp.

◆ rate

const int WaveCache::rate

Definition at line 84 of file WaveClip.cpp.

◆ rms

std::vector<float> WaveCache::rms

Definition at line 88 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().

◆ start

const double WaveCache::start

Definition at line 82 of file WaveClip.cpp.

◆ where

std::vector<sampleCount> WaveCache::where

Definition at line 85 of file WaveClip.cpp.

Referenced by WaveClip::GetWaveDisplay().


The documentation for this class was generated from the following file:
WaveCache::rms
std::vector< float > rms
Definition: WaveClip.cpp:88
WaveCache::len
const size_t len
Definition: WaveClip.cpp:81
WaveCache::dirty
int dirty
Definition: WaveClip.cpp:80
WaveCache::bl
std::vector< int > bl
Definition: WaveClip.cpp:89
WaveCache::min
std::vector< float > min
Definition: WaveClip.cpp:86
WaveCache::max
std::vector< float > max
Definition: WaveClip.cpp:87
WaveCache::pps
const double pps
Definition: WaveClip.cpp:83
WaveCache::rate
const int rate
Definition: WaveClip.cpp:84
WaveCache::where
std::vector< sampleCount > where
Definition: WaveClip.cpp:85
WaveCache::start
const double start
Definition: WaveClip.cpp:82