PannerOptions constructor
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,
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);