We play audio and sound fx in our game and everything works as expected in the editor and WEBGL builds on browsers and Android. On iOS, the sound plays correctly but does not respect iOS silent mode (switching the ringer to silent).
Using Unity 2022.3.1f1.
Screenshot for the audio clip import settings: Screenshot 2023 10 05 at 12 37 18 PM — Postimages
Any idea whats causing this?
Disabling the WEBGL import settings and selecting PCM compression and decompress on load seem to solve this issue
Thanks for reporting. I can reproduce, and see this is a Safari bug.
Filed 262781 – Silent mode plays back compressed audio, but not uncompressed audio to Safari WebKit bug tracker.
The issue persists in iOS 17.0.3 to 17.2 despite attempting to decompress PCM or Vorbis on load.
This bug affects Unity 2021.3.34 and Unity 2022.3.10 to 2022.3.15 on iOS, causing no sound to be heard in silent mode.
Search tags:[Unity iOS no sound bug “silent mode”]
@jukka_j any updates on the Safari bug?