Audacity  2.2.2
Public Member Functions | Public Attributes | List of all members
SummaryInfo Class Reference

Works with BlockFile to hold info about max and min and RMS over multiple samples, which in turn allows rapid drawing when zoomed out. More...

#include <BlockFile.h>

Public Member Functions

 SummaryInfo (size_t samples)
 

Public Attributes

int fields
 
sampleFormat format
 
int bytesPerFrame
 
size_t frames64K
 
int offset64K
 
size_t frames256
 
int offset256
 
size_t totalSummaryBytes
 

Detailed Description

Works with BlockFile to hold info about max and min and RMS over multiple samples, which in turn allows rapid drawing when zoomed out.

Definition at line 30 of file BlockFile.h.

Constructor & Destructor Documentation

SummaryInfo::SummaryInfo ( size_t  samples)

Definition at line 73 of file BlockFile.cpp.

References bytesPerFrame, fields, floatSample, format, frames256, frames64K, headerTagLen, offset256, offset64K, and totalSummaryBytes.

74 {
76 
77  fields = 3; /* min, max, rms */
78 
79  bytesPerFrame = sizeof(float) * fields;
80 
81  frames64K = (samples + 65535) / 65536;
82  frames256 = frames64K * 256;
83 
87 }
int bytesPerFrame
Definition: BlockFile.h:36
sampleFormat format
Definition: BlockFile.h:35
size_t frames256
Definition: BlockFile.h:39
int offset64K
Definition: BlockFile.h:38
static const int headerTagLen
Definition: BlockFile.cpp:70
size_t totalSummaryBytes
Definition: BlockFile.h:41
int fields
Definition: BlockFile.h:34
size_t frames64K
Definition: BlockFile.h:37
int offset256
Definition: BlockFile.h:40

Member Data Documentation

int SummaryInfo::bytesPerFrame
int SummaryInfo::fields
sampleFormat SummaryInfo::format
size_t SummaryInfo::frames256
size_t SummaryInfo::frames64K
int SummaryInfo::offset256
int SummaryInfo::offset64K
size_t SummaryInfo::totalSummaryBytes

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