Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
WaveDisplay Class Reference

#include <WaveformCache.h>

Collaboration diagram for WaveDisplay:
[legend]

Public Member Functions

 WaveDisplay (int w)
 
void Allocate ()
 
 ~WaveDisplay ()
 

Public Attributes

int width
 
sampleCountwhere
 
float * min
 
float * max
 
float * rms
 
std::vector< sampleCountownWhere
 
std::vector< float > ownMin
 
std::vector< float > ownMax
 
std::vector< float > ownRms
 

Detailed Description

Definition at line 21 of file WaveformCache.h.

Constructor & Destructor Documentation

◆ WaveDisplay()

WaveDisplay::WaveDisplay ( int  w)
inline

Definition at line 32 of file WaveformCache.h.

33 : width(w), where(0), min(0), max(0), rms(0)
34 {
35 }
float * rms
Definition: WaveformCache.h:26
sampleCount * where
Definition: WaveformCache.h:25
float * min
Definition: WaveformCache.h:26
float * max
Definition: WaveformCache.h:26

◆ ~WaveDisplay()

WaveDisplay::~WaveDisplay ( )
inline

Definition at line 56 of file WaveformCache.h.

57 {
58 }

Member Function Documentation

◆ Allocate()

void WaveDisplay::Allocate ( )
inline

Definition at line 38 of file WaveformCache.h.

39 {
40 ownWhere.resize(width + 1);
41 ownMin.resize(width);
42 ownMax.resize(width);
43 ownRms.resize(width);
44
45 where = &ownWhere[0];
46 if (width > 0) {
47 min = &ownMin[0];
48 max = &ownMax[0];
49 rms = &ownRms[0];
50 }
51 else {
52 min = max = rms = 0;
53 }
54 }
std::vector< float > ownMin
Definition: WaveformCache.h:29
std::vector< sampleCount > ownWhere
Definition: WaveformCache.h:28
std::vector< float > ownMax
Definition: WaveformCache.h:29
std::vector< float > ownRms
Definition: WaveformCache.h:29

References max, min, ownMax, ownMin, ownRms, ownWhere, rms, where, and width.

Referenced by anonymous_namespace{WaveformView.cpp}::DrawClipWaveform().

Here is the caller graph for this function:

Member Data Documentation

◆ max

float * WaveDisplay::max

◆ min

float* WaveDisplay::min

◆ ownMax

std::vector<float> WaveDisplay::ownMax

Definition at line 29 of file WaveformCache.h.

Referenced by Allocate().

◆ ownMin

std::vector<float> WaveDisplay::ownMin

Definition at line 29 of file WaveformCache.h.

Referenced by Allocate().

◆ ownRms

std::vector<float> WaveDisplay::ownRms

Definition at line 29 of file WaveformCache.h.

Referenced by Allocate().

◆ ownWhere

std::vector<sampleCount> WaveDisplay::ownWhere

Definition at line 28 of file WaveformCache.h.

Referenced by Allocate(), and WaveClipWaveformCache::GetWaveDisplay().

◆ rms

float * WaveDisplay::rms

◆ where

sampleCount* WaveDisplay::where

◆ width

int WaveDisplay::width

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