1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Rewrite WaveTrack::GetEnvelopeValues, taking one less argument...

... In practice this argument was always 1 / rate so it was superfluous.

Also make the buffer size argument unsigned.
This commit is contained in:
Paul Licameli
2016-08-20 17:56:41 -04:00
parent 0c4c835b27
commit 5cf331ae8c
3 changed files with 21 additions and 23 deletions

View File

@@ -239,8 +239,8 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
sampleCount start, sampleCount len, fillFormat fill=fillZero) const;
bool Set(samplePtr buffer, sampleFormat format,
sampleCount start, sampleCount len);
void GetEnvelopeValues(double *buffer, int bufferLen,
double t0, double tstep) const;
void GetEnvelopeValues(double *buffer, size_t bufferLen,
double t0) const;
bool GetMinMax(float *min, float *max,
double t0, double t1) const;
bool GetRMS(float *rms, double t0, double t1);