Search Unity

Audio Change muteOtherAudioSources parameter at runtime

Discussion in 'Audio & Video' started by nausicaa, Aug 7, 2019.

  1. nausicaa

    nausicaa

    Joined:
    Dec 8, 2014
    Posts:
    16
    Hello,

    I'm working on a little game for android. I enabled the muteOtherAudioSources from playerSettings to prevent any music running on the phone to play while my game is running.
    The point is that if the music level is set to 0 in my game, it would be a good idea to allow other audio source (so the player can listen to his own music)
    The playerSettings class cannot be used out of unityEditor so it seems I cannot change this "muteOtherAudioSources" behavior at runtime.
    Do you have any idea how I could acheive it ?
     
    dm_bond likes this.
  2. nausicaa

    nausicaa

    Joined:
    Dec 8, 2014
    Posts:
    16
    Up :)
    I'm searching for that since a long time. I cannot belive this is not possible. Anyone has any clue on this ?
     
    resilio likes this.
  3. nausicaa

    nausicaa

    Joined:
    Dec 8, 2014
    Posts:
    16
    still up :(