VoiceCollection.create constructor
VoiceCollection.create(
- Synthesizer synthesizer,
- int maxActiveVoiceCount
Implementation
factory VoiceCollection.create(Synthesizer synthesizer, int maxActiveVoiceCount)
{
List<Voice> voices = [];
for(int i = 0; i < maxActiveVoiceCount; i++) {
voices.add(Voice(synthesizer));
}
return VoiceCollection(synthesizer: synthesizer, voices: voices);
}