mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-09 16:21:02 +02:00
Addressing one of the problems reported with 'Normalise' if the offset is greater than the signal. Comments on other possible problems.
This commit is contained in:
parent
4f7e7a5993
commit
ffea5a2273
@ -254,8 +254,8 @@ bool Sequence::GetMinMax(sampleCount start, sampleCount len,
|
||||
float * outMin, float * outMax) const
|
||||
{
|
||||
if (len == 0 || mBlock->GetCount() == 0) {
|
||||
*outMin = float(0.0);
|
||||
*outMax = float(0.0);
|
||||
*outMin = float(0.0); // FLT_MAX? So it doesn't look like a spurious '0' to a caller?
|
||||
*outMax = float(0.0); // -FLT_MAX? So it doesn't look like a spurious '0' to a caller?
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -955,8 +955,8 @@ bool WaveClip::GetSpectrogram(float *freq, sampleCount *where,
|
||||
bool WaveClip::GetMinMax(float *min, float *max,
|
||||
double t0, double t1)
|
||||
{
|
||||
*min = float(0.0);
|
||||
*max = float(0.0);
|
||||
*min = float(0.0); // harmless, but unused since Sequence::GetMinMax does not use these values
|
||||
*max = float(0.0); // harmless, but unused since Sequence::GetMinMax does not use these values
|
||||
|
||||
if (t0 > t1)
|
||||
return false;
|
||||
|
@ -1538,8 +1538,8 @@ double WaveTrack::GetEndTime()
|
||||
bool WaveTrack::GetMinMax(float *min, float *max,
|
||||
double t0, double t1)
|
||||
{
|
||||
*min = float(0.0);
|
||||
*max = float(0.0);
|
||||
*min = FLT_MAX;
|
||||
*max = -FLT_MAX;
|
||||
|
||||
if (t0 > t1)
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user