AudioBufferSourceOptions constructor

AudioBufferSourceOptions({
  1. AudioBuffer? buffer,
  2. double? detune,
  3. bool? loop,
  4. double? loopEnd,
  5. double? loopStart,
  6. double? playbackRate,
})

Implementation

factory AudioBufferSourceOptions(
        {AudioBuffer? buffer,
        double? detune,
        bool? loop,
        double? loopEnd,
        double? loopStart,
        double? playbackRate}) =>
    AudioBufferSourceOptions._(
        buffer: buffer ?? undefined,
        detune: detune ?? 0,
        loop: loop ?? false,
        loopEnd: loopEnd ?? 0,
        loopStart: loopStart ?? 0,
        playbackRate: playbackRate ?? 1);