Audacity
3.2.0
src
tracks
playabletrack
wavetrack
ui
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>
15
class
Sequence
;
16
class
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.
24
bool
GetWaveDisplay
(
const
Sequence
&sequence,
25
float
*
min
,
float
*
max
,
float
*rms,
26
size_t
len,
const
sampleCount
*where);
27
28
#endif
min
int min(int a, int b)
Definition:
CompareAudioCommand.cpp:114
GetWaveDisplay
bool GetWaveDisplay(const Sequence &sequence, float *min, float *max, float *rms, size_t len, const sampleCount *where)
Definition:
GetWaveDisplay.cpp:64
Sequence
A WaveTrack contains WaveClip(s). A WaveClip contains a Sequence. A Sequence is primarily an interfac...
Definition:
Sequence.h:53
sampleCount
Positions or offsets within audio files need a wide type.
Definition:
SampleCount.h:19
sampleCount::max
static sampleCount max()
Definition:
SampleCount.h:69
Generated by
1.9.3