defaultPannerStrategy property
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.');
}
}
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;
}
}