SetGameObjectOutputBusVolume() public static method

public static SetGameObjectOutputBusVolume ( UnityEngine in_gameObjectID, float in_fControlValue ) : AKRESULT
in_gameObjectID UnityEngine
in_fControlValue float
return AKRESULT
Ejemplo n.º 1
0
 public void SetVoiceVolume(float volume, int type)
 {
     // AkSoundEngine.SetOutputVolume
     if (type == 1)
     {
         AkSoundEngine.SetGameObjectOutputBusVolume(this.wWiseGameMusic, this.wWiseGameMusic, volume);
         MusicVolume = volume;
     }
     else if (type == 2)
     {
         AkSoundEngine.SetGameObjectOutputBusVolume(this.wwiseGameObjectDic[this.wWiseGameSoundEffect], this.wWiseGameMusic, volume);
         SoundEffectVolume = volume;
     }
     else if (type == 3)
     {
         AkSoundEngine.SetGameObjectOutputBusVolume(this.wwiseGameObjectDic[this.wWiseGameSoundOther], this.wWiseGameMusic, volume);
         SoundOtherVolume = volume;
     }
 }
Ejemplo n.º 2
0
 public void SetGameObjectOutputBusVolume(GameObject gameObj, AkAudioListener listener, float volume)
 {
     AkSoundEngine.SetGameObjectOutputBusVolume(gameObj, mListener.gameObject, Mathf.Clamp(volume, minVolume, maxVolume));
 }