I have a single AudioListener in my scene, and I disabled it to shut down every sound.
It works fine in PC. But audios keep playing on my android after I did that as well as setting AudioListener.volume = 0.
Is there any other way to turn off sound on Android Device? Or some scripts to set the Android’s media volume to 0?
Thanks!
1 Answer
1if (Application.platform == RuntimePlatform.Android)
{
AudioListener.volume = 0;
audio.Stop();
}
Hope its work
Thanks for the quick respond! Yes, AudioListener.volume = 0; is the right answer. I try it in a new test scene, and it work. The problem isn't come from AudioListener but my coding on my sound switch. And it has been fixed now. Thanks Again! :)
– JINNEE-0419