Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Audio is playing despite iOS device being in silent mode

Discussion in 'Web' started by gilizeeviSG, Oct 5, 2023.

  1. gilizeeviSG

    gilizeeviSG

    Joined:
    May 12, 2023
    Posts:
    7
    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: https://postimg.cc/XZHnS07x

    Any idea whats causing this?
     
  2. gilizeeviSG

    gilizeeviSG

    Joined:
    May 12, 2023
    Posts:
    7
    Disabling the WEBGL import settings and selecting PCM compression and decompress on load seem to solve this issue
     
  3. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
  4. FURKANKAHVECI

    FURKANKAHVECI

    Joined:
    May 12, 2013
    Posts:
    27
    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"]
     
    Last edited: Jan 11, 2024
  5. FURKANKAHVECI

    FURKANKAHVECI

    Joined:
    May 12, 2013
    Posts:
    27