mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-10 00:51:13 +02:00
Fix Linux build.
Problem caused by my commit: 64079c3. DBL_MAX was not declared.
This commit is contained in:
parent
64079c3f55
commit
d531e8a2f8
@ -774,14 +774,15 @@ void Mixer::SetSpeedForKeyboardScrubbing(double speed, double startTime)
|
||||
|
||||
// Check if the direction has changed
|
||||
if ((speed > 0.0 && mT1 < mT0) || (speed < 0.0 && mT1 > mT0)) {
|
||||
// It's safe to use 0 and DBL_MAX, because Mixer::MixVariableRates()
|
||||
// doesn't sample past the start or end of the audio in a track.
|
||||
// It's safe to use 0 and std::numeric_limits<double>::max(),
|
||||
// because Mixer::MixVariableRates() doesn't sample past the start
|
||||
// or end of the audio in a track.
|
||||
if (speed > 0.0 && mT1 < mT0) {
|
||||
mT0 = 0;
|
||||
mT1 = DBL_MAX;
|
||||
mT1 = std::numeric_limits<double>::max();
|
||||
}
|
||||
else {
|
||||
mT0 = DBL_MAX;
|
||||
mT0 = std::numeric_limits<double>::max();
|
||||
mT1 = 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user