SynthesizerSettings constructor

SynthesizerSettings({
  1. int sampleRate = 44100,
  2. int blockSize = 64,
  3. int maximumPolyphony = 64,
  4. bool enableReverbAndChorus = true,
})

Implementation

SynthesizerSettings(
    {int sampleRate = 44100, int blockSize = 64, int maximumPolyphony = 64, this.enableReverbAndChorus = true})
    : sampleRate = checkSampleRate(sampleRate),
      blockSize = checkBlockSize(blockSize),
      maximumPolyphony = checkMaximumPolyphony(maximumPolyphony);