Example #1
0
 //Call this function and pass in the float parameter sfxLevel to set the volume of the AudioMixerGroup SoundFx in mainMixer
 public void SetSfxLevel(float sfxLevel)
 {
     mainMixer.SetFloat("sfxVol", sfxLevel);
     FMOD_Volume.SetSFXVolume(sfxLevel);
 }
Example #2
0
    public AudioMixer mainMixer;                                        //Used to hold a reference to the AudioMixer mainMixer


    //Call this function and pass in the float parameter musicLvl to set the volume of the AudioMixerGroup Music in mainMixer
    public void SetMusicLevel(float musicLvl)
    {
        FMOD_Volume.SetMusicVolume(musicLvl);
    }