Repository navigation
fix(sound): drawer sound effects follow media volume, as on iOS - #13
Merged
Merged
Conversation
Replace system sonification usage, which Android links to ring volume, with media usage for the bundled foreground cues. Preserve sonification content, no audio focus, and the explicit silent/vibrate gate to match AVAudioPlayer on the iOS ambient session. Verified on FX_2: the v0.3.0 volume preview still played with media muted. The fixed track is STREAM_MUSIC, is muted at media 0, and plays at media 15 with ring 1. Vibrate still skips playback. vm.sh check :core passed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User report on v0.3.0 (X): "Experimental › Drawer › Sound Effects don't seem to be working."
The sounds were in the APK and played, but through
USAGE_ASSISTANCE_SONIFICATION, which follows the ring/notification volume. iOS plays them withAVAudioPlayeron an.ambientsession (SoundEffectsPlayback.swift:223-238), which follows media volume. With ring low the cues were effectively inaudible (-43.5 dBFS at ring 1/7, media max); they now useUSAGE_MEDIA(-22.0 dBFS in the same setup), are silent at media 0, and still skip playback in vibrate/silent as before.Also checked (no change): the single in-progress notification when several sessions run matches iOS, which replaces the prior run's activity (
HomeFeature+SessionActivity.swift:73).Verified on an emulator (release before, debug after, measured output levels);
scripts/check.sh :corepasses.