Updated a test that did not account for sister voices

This commit is contained in:
Paul Ferrand 2020-06-23 00:21:53 +02:00
parent 498e1b95bb
commit 1e6cb8245e

View file

@ -129,11 +129,14 @@ TEST_CASE("[Polyphony] Hierarchy polyphony limits (limit in another master)")
<region> sample=*saw key=65
<master>
<group> polyphony=5
<region> sample=*sine key=65
<region> sample=*sine key=66
)");
synth.noteOn(0, 65, 64);
synth.noteOn(0, 65, 64);
synth.noteOn(0, 65, 64);
synth.noteOn(0, 66, 64);
synth.noteOn(0, 66, 64);
synth.noteOn(0, 66, 64);
REQUIRE(synth.getNumActiveVoices() == 5);
}