[iOS] sdl2 audio driver does not follow the "Respect Silent Mode" setting
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 14.1k
- Forks
- 2.2k
- Avg merge
- 7h 35m
- Merged PRs (30d)
- 51
Description
Is there an existing issue for this?
- This is a bug in RetroArch frontend
- I have searched the existing issues
Description
The sdl2 audio driver seems to ignore the "Respect Silent Mode" setting while a core is running. Menu sounds are properly silenced, but the core's audio always plays, regardless if your device's Silent Mode is on or off.
I discovered this while testing #17711 and #18127 which confused me for a bit.
Expected behavior
If "Respect Silent Mode" is on, core audio should be muted if Silent Mode is on. The coreaudio and openal audio drivers behave properly.
Steps to reproduce the bug
- Turn on "Settings > Audio > Respect Silent Mode" (on by default on iOS).
- Have sdl2 selected as the audio driver.
- Load a core.
- Toggle the silent switch/Silent Mode and observe that the audio is not muted.
Version/Commit
1.21.0 (54af661d95)
Bisect Results
No response
Present in the nightly version
Yes, this is reproduced in the nightly build
Platform & operating system
iOS 18.5
Affected Cores
All
Environment information
No response
Relevant log output
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the iOS sdl2 audio driver and compare its handling of the "Respect Silent Mode" setting with the coreaudio and openal drivers. Reproduce the issue using the listed settings and steps, then verify that core audio is muted in Silent Mode when the setting is enabled and remains unaffected when it is disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100