Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Disable Audio Focus Android

Discussion in 'Audio & Video' started by Deathfate, Sep 23, 2016.

  1. Deathfate

    Deathfate

    Joined:
    Sep 10, 2012
    Posts:
    46
    Hello, I want to make a soundless app, I have selected Disable Unity Audio in Settings but even though I did that If I play music in the background with an app It stops as soon as I enter my unity Application.

    Is there any way to avoid that? I can write a plugin if needed but I don't know what to do as abandonFocus of AudioManager needs a listener parameter and I don't know if that would make any sense as what I want is to not request audio focus in the first place.

    Thank you.