forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
audio_handler: Change volume by number_of_volume_steps
Add new data member number_of_volume_steps to audio_device, and get this data from audio_node. Also fix relevant unittest for this change. In IncreaseOutputVolumeByOneStep, set a new volume one step higher than the current volume. In DecreaseOutputVolumeByOneStep, set a new volume one step lower than the current volume. Previously, we simply changed 4% each time, but this could cause the user to feel no volume change after the volume up/down event. Doing this allows the user to feel volume change every event. BUG=b:215297837 TEST=autoninja -C out/Default/ ash_components_unittests Change-Id: I6670903267c267b148133f524f9df7e039f98f63 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3801854 Commit-Queue: Ching Yun Chang <whalechang@google.com> Reviewed-by: Hsinyu Chao <hychao@chromium.org> Cr-Commit-Position: refs/heads/main@{#1039164}
- Loading branch information
whalechang
authored and
Chromium LUCI CQ
committed
Aug 25, 2022
1 parent
9d943bd
commit 8c2ca90
Showing
5 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters