- Home /
AudioMixer works in editor but doesn't work in Android Device
I Simply have two sliders for set Music and SFX audio volumes in my settings , and here is my code:
public void SetMusic(float volume)
{
audioMixer.SetFloat("Music", volume);
}
public void SetSFX(float volume)
{
audioMixer.SetFloat("SFX", volume);
}
And exposed two Music and SFX parameters from volumes of My two Audio Mixer groups , when I use it in editor it works perfectly and everything works fine but when I Built in use in it Android device it doesn't works and changing sliders won't effect the sounds , should I change anything for working audio mixer on Android Device? let me know if you want any information!
Answer by GodManOmar777 · Nov 19, 2021 at 02:36 PM
@armanajdani I have the same problem i exposed my tracks to be use by scripts by giving the a string name ran the code in editor it work fine but when I went to build to my android device the slider barely turns down the volume and in the editor it works fine I turn the volume down on my phone to min-1 and my max to 5 and im using whole numbers? In the editor run on my phone and get the same problem is this an internal unity bug
Your answer
![](https://koobas.hobune.stream/wayback/20220612182933im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
WWW.audioClip not playing on android build 1 Answer
Android plugin loading resources problem 1 Answer
Which AudioClip formats will decompress using hardware? 0 Answers
Android Build - Audio Static (Solved) 0 Answers
I Need a script for a guitexture enableing a spotlight and play a sound when pressed 1 Answer