setNoiseSuppression method
Sets the MediaSettings.noiseSuppression value.
Implementation
Future<void> setNoiseSuppression(NoiseSuppressionLevelWithOff level) async {
switch (level) {
case NoiseSuppressionLevelWithOff.off:
await _settingsRepo.setNoiseSuppression(false);
break;
case NoiseSuppressionLevelWithOff.low:
case NoiseSuppressionLevelWithOff.moderate:
case NoiseSuppressionLevelWithOff.high:
case NoiseSuppressionLevelWithOff.veryHigh:
await _settingsRepo.setNoiseSuppression(true);
await _settingsRepo.setNoiseSuppressionLevel(level.toLevel());
break;
}
}