Search Issue Tracker

Fixed in 5.5.0

Votes

65

Found in

5.3.6p4

Issue ID

828762

Regression

Yes

[iOS] Sound volume of music playing on the device gets quiet after launching a Unity app

iOS

-

When a Unity app is launched, any audio playing on the device (iTunes, Spotify, etc.) gets quiet, even when the app is not playing any sounds. This issue does not occur when 'Disable Unity Audio' is checked in Edit > Project Settings > Audio. When the app goes back to background or is exited, the sound goes back to normal.

Steps to reproduce:
1) Create a new project.
2) Build for iOS.
3) Play music on a device.
4) Launch the build on the device.

As soon as the app starts, the sound volume is halved.

Reproduced on:
5.5.0b2, 5.4.0p4, 5.3.6p4

Did not reproduce:
5.2.4f1

Comments (36)

  1. D91b27f903a0377edfe9429ae7819224?d=mm

    the-Grumbleputty

    Sep 21, 2016 16:51

    Ok, the fix in my case was suspiciously easy...I just turned off the "Prepare IOS for Recording" button in Player Settings. My app still records audio, but now plays sound back properly. If you're having the same problem, hopefully the solution that worked for me will help you too.

  2. D91b27f903a0377edfe9429ae7819224?d=mm

    the-Grumbleputty

    Sep 21, 2016 16:46

    Pretty much destroys my game project, which lets the players record their names and calls on them during play. Once again regretting updating Unity.

  3. 5899ec41dddaa66045c210f88808fa63?d=mm

    pmaloka

    Sep 08, 2016 11:26

    I came up with a workaround. As they say, "Necessity is the mother of invention."

    1) Subclassed AppDelegate
    2) Inside subclassed startUnity, swizzled [AVAudioSession setCategory:withOptions:error:]
    3) Make swizzled version change option AVAudioSessionCategoryOptionDuckOthers to AVAudioSessionCategoryOptionMixWithOthers

    Seems to work for now. Hoping Unity will provide a better sanctioned way to solve this.

  4. 82e2e7f65eb6c816ce99792e7e352018?d=mm

    Davee

    Sep 08, 2016 07:48

    Also seeing this issue, which probably will prevent us from updating Unity.

  5. 5899ec41dddaa66045c210f88808fa63?d=mm

    pmaloka

    Sep 07, 2016 02:42

    What is the workaround for this issue? (Severity 3 - workaround is possible).

  6. 5899ec41dddaa66045c210f88808fa63?d=mm

    pmaloka

    Sep 07, 2016 02:39

    We are seeing this as well. We need audio to play normally so that users can still talk on the phone at normal volumes while playing our casual game.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.