Update tests: increase delays to account ADSR fadeout
This commit is contained in:
parent
d19c41bd90
commit
a2cbec8c5e
2 changed files with 2 additions and 2 deletions
|
|
@ -517,7 +517,7 @@ TEST_CASE("[Files] Off modes")
|
|||
REQUIRE( synth.getNumActiveVoices() == 3 );
|
||||
REQUIRE( numPlayingVoices(synth) == 1 );
|
||||
AudioBuffer<float> buffer { 2, 256 };
|
||||
for (unsigned i = 0; i < 10; ++i) // Not enough for the "normal" voice to die
|
||||
for (unsigned i = 0; i < 20; ++i) // Not enough for the "normal" voice to die
|
||||
synth.renderBlock(buffer);
|
||||
REQUIRE( synth.getNumActiveVoices() == 2 );
|
||||
REQUIRE( fastVoice->isFree() );
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ TEST_CASE("[Synth] Play and check active voices")
|
|||
synth.noteOn(0, 36, 89);
|
||||
REQUIRE(synth.getNumActiveVoices() == 2);
|
||||
// Render for a while
|
||||
for (int i = 0; i < 200; ++i)
|
||||
for (int i = 0; i < 300; ++i)
|
||||
synth.renderBlock(buffer);
|
||||
REQUIRE(synth.getNumActiveVoices() == 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue