Hi All,
I have been reading a lot of forum posts and other web results and cannot seem to get to the bottom of this.
I am trying to use the audio mixer with snapshots to change sound settings. This does work in the editor but not on my iOs build.
Then i tried to use exposed properties of the audio mixer (volume) to set the volume ‘by hand’ and this also works in the editor but not on my iOs build.
The debug number of the volume sais it has changed but i do not hear it change.
I also have a reference to the mixer…
What am i missing here?
Code example:
Debug.Log( "mixer = " + mixer);
mixer.SetFloat (“MusicVolume”, -80f); or mixer.SetFloat (“MusicVolume”, 0f);
float tmp;
mixer.GetFloat( “MusicVolume”, out tmp );
Debug.Log( "Volume = " + tmp);
Xcode output:
mixer = MainAudioMixer (UnityEngine.AudioMixer)
Volume = -80 or Volume = 0