Check a voice is available before each CC trigger.
commitba935ab03589acd41dd68091711694fc16ad895b
authorAdam Sampson <ats@offog.org>
Sat, 4 Apr 2015 21:22:03 +0000 (4 22:22 +0100)
committerAdam Sampson <ats@offog.org>
Sat, 4 Apr 2015 21:22:03 +0000 (4 22:22 +0100)
treef4e4196eb970abd9f905b463a27b9e5d3ad58550
parentb7ce53cb0a307330a3dfb139a95147c6d840f2a7
Check a voice is available before each CC trigger.

If more than one sample is triggered by the same CC event, then it's
possible to run out of voices during the loop. Move the check for an
available voice into the loop to fix this.

(Found while playing SalamanderGrandPianoV3, which triggers multiple
samples from the sustain pedal.)
sampler_channel.c