PannerOptions constructor

PannerOptions({
  1. PanningModelType? panningModel,
  2. DistanceModelType? distanceModel,
  3. double? positionX,
  4. double? positionY,
  5. double? positionZ,
  6. double? orientationX,
  7. double? orientationY,
  8. double? orientationZ,
  9. double? refDistance,
  10. double? maxDistance,
  11. double? rolloffFactor,
  12. double? coneInnerAngle,
  13. double? coneOuterAngle,
  14. double? coneOuterGain,
})

Implementation

factory PannerOptions(
        {PanningModelType? panningModel,
        DistanceModelType? distanceModel,
        double? positionX,
        double? positionY,
        double? positionZ,
        double? orientationX,
        double? orientationY,
        double? orientationZ,
        double? refDistance,
        double? maxDistance,
        double? rolloffFactor,
        double? coneInnerAngle,
        double? coneOuterAngle,
        double? coneOuterGain}) =>
    PannerOptions._(
        panningModel:
            panningModel?.value ?? PanningModelType.equalpower.value,
        distanceModel:
            distanceModel?.value ?? DistanceModelType.inverse.value,
        positionX: positionX ?? 0,
        positionY: positionY ?? 0,
        positionZ: positionZ ?? 0,
        orientationX: orientationX ?? 1,
        orientationY: orientationY ?? 0,
        orientationZ: orientationZ ?? 0,
        refDistance: refDistance ?? 1,
        maxDistance: maxDistance ?? 10000,
        rolloffFactor: rolloffFactor ?? 1,
        coneInnerAngle: coneInnerAngle ?? 360,
        coneOuterAngle: coneOuterAngle ?? 360,
        coneOuterGain: coneOuterGain ?? 0);