1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ADSR: Fixed a test failure with small sustain lengths

This commit is contained in:
ed 2021-03-31 17:21:42 +01:00
parent 32690e6273
commit 97ee7b7864

View file

@ -82,7 +82,7 @@ struct ADSRTests : public UnitTest
for (int numTests = 0; numTests < 100; ++numTests)
{
const auto sustainLevel = random.nextFloat();
const auto sustainLength = random.nextFloat();
const auto sustainLength = jmax (0.1f, random.nextFloat());
adsr.setParameters ({ parameters.attack, parameters.decay, sustainLevel, parameters.release });