Update comment on sound.cc volume based(speed ->noise) (#26719)

Update sound.cc
old-commit-hash: fa0bf404c8
taco
AlexandreSato 3 years ago committed by GitHub
parent ecf87de6da
commit 6bc328535c
  1. 2
      selfdrive/ui/soundd/sound.cc

@ -46,7 +46,7 @@ void Sound::update() {
return;
}
// scale volume with speed
// scale volume using ambient noise level
if (sm.updated("microphone")) {
float volume = util::map_val(sm["microphone"].getMicrophone().getFilteredSoundPressureWeightedDb(), 30.f, 52.f, 0.f, 1.f);
volume = QAudio::convertVolume(volume, QAudio::LogarithmicVolumeScale, QAudio::LinearVolumeScale);

Loading…
Cancel
Save