Audacity 3.2.0
GetWaveDisplay.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file GetWaveDisplay.h
6
7 Paul Licameli split from Sequence.h
8
9**********************************************************************/
10
11#ifndef __AUDACITY_GET_WAVE_DISPLAY__
12#define __AUDACITY_GET_WAVE_DISPLAY__
13
14#include <cstddef>
15class Sequence;
16class sampleCount;
17
18// where is input, assumed to be nondecreasing, and its size is len + 1.
19// min, max, rms, bl are outputs, and their lengths are len.
20// Each position in the output arrays corresponds to one column of pixels.
21// The column for pixel p covers samples from
22// where[p] up to (but excluding) where[p + 1].
23// Return true if successful.
24bool GetWaveDisplay(const Sequence &sequence,
25 float *min, float *max, float *rms,
26 size_t len, const sampleCount *where);
27
28#endif
int min(int a, int b)
bool GetWaveDisplay(const Sequence &sequence, float *min, float *max, float *rms, size_t len, const sampleCount *where)
A WaveTrack contains WaveClip(s). A WaveClip contains a Sequence. A Sequence is primarily an interfac...
Definition: Sequence.h:53
Positions or offsets within audio files need a wide type.
Definition: SampleCount.h:19
static sampleCount max()
Definition: SampleCount.h:69