feat: Add subtle remote sounds #27
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/remote-sounds"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds quiet audio feedback for the remote.
The sounds are synthesized in
UiSoundSynthinstead of shipped as audio files. At startup they are written to the cache and loaded into aSoundPoolthat plays on the sonification stream, so the TV's system volume controls them. One hook indispatchKeyEventcovers every surface: shelf, grid, settings sheet, Bluetooth panel and the app menu.A new Remote sounds on/off row sits at the top of Settings → Default home & backup. It is on by default and included in settings backups. Older backups that don't have the key leave the setting unchanged. While the launcher's sounds are on, it skips its own explicit platform
CLICKcalls so the two sounds don't play on top of each other.Not a goal: sounds in the rename and setup dialogs, which run in their own windows, or touch-only taps.
Tested on the LiveWireTV_API34 emulator.
dumpsys audioshowed one SoundPool start per Right, Right, Left, Down, Up and OK press. After switching the setting off, four arrow presses produced no starts.testDebugUnitTest(including the newUiSoundSynthTestand the updated backup round-trip test),lintDebugandassembleDebugall pass.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.