process method
void
process()
Implementation
void process()
{
var i = 0;
while (true)
{
if (i == _activeVoiceCount)
{
return;
}
if (voices[i].process())
{
i++;
}
else
{
_activeVoiceCount--;
var tmp = voices[i];
voices[i] = voices[_activeVoiceCount];
voices[_activeVoiceCount] = tmp;
}
}
}