public StreamSynthesizer(int sampleRate, int audioChannels, int bufferSize, int maxpoly) { this.sampleRate = sampleRate; this.audioChannels = audioChannels; //UnitySynth this.samplesperBuffer = bufferSize; this.polyphony = maxpoly; setupSynth(); }