defaultPannerStrategy property

  1. @override
DefaultPannerStrategy get defaultPannerStrategy
override

Get the default panner strategy.

Implementation

@override
DefaultPannerStrategy get defaultPannerStrategy {
  final value = context.defaultPannerStrategy.value;
  switch (value) {
    case PannerStrategy.hrtf:
      return DefaultPannerStrategy.hrtf;
    case PannerStrategy.stereo:
      return DefaultPannerStrategy.stereo;
    default:
      throw StateError('Got a panner strategy of $value.');
  }
}
  1. @override
set defaultPannerStrategy (DefaultPannerStrategy value)
override

Set the default panner strategy.

Implementation

@override
set defaultPannerStrategy(final DefaultPannerStrategy value) {
  switch (value) {
    case DefaultPannerStrategy.stereo:
      context.defaultPannerStrategy.value = PannerStrategy.stereo;
      break;
    case DefaultPannerStrategy.hrtf:
      context.defaultPannerStrategy.value = PannerStrategy.hrtf;
      break;
  }
}