libretro / libretro/RetroArch

[iOS] sdl2 audio driver does not follow the "Respect Silent Mode" setting

Open
#18,128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug: sdl2 audio platform: ios
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
  1. Turn on "Settings > Audio > Respect Silent Mode" (on by default on iOS).
  2. Have sdl2 selected as the audio driver.
  3. Load a core.
  4. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.