/// <summary>Unmutes the system volume for given audio stream type</summary> /// <param name="audioStreamType">The audio stream type</param> /// <param name="sendCallback">Optional: Indicates whether to send an event callback, default is false</param> public static void UnmuteSystemVolume(AudioStreamType audioStreamType, bool sendCallback = false) { NativeSystemVolume systemVolume = Instance.systemVolume; if (!systemVolume.ValidateAudioStreamType(audioStreamType)) { return; } systemVolume.SetSystemVolumeMute(false, audioStreamType, sendCallback); }
/// <summary>Gets the system volume for given audio stream type</summary> public static float GetSystemVolume(AudioStreamType audioStreamType) { NativeSystemVolume systemVolume = Instance.systemVolume; if (!systemVolume.ValidateAudioStreamType(audioStreamType)) { return(-1); } return(systemVolume.GetSystemVolume(audioStreamType)); }
/// <summary>Indicates if the system volume is muted for given audio stream type</summary> public static bool IsSystemVolumeMuted(AudioStreamType audioStreamType) { NativeSystemVolume systemVolume = Instance.systemVolume; if (!systemVolume.ValidateAudioStreamType(audioStreamType)) { return(false); } return(systemVolume.IsSystemVolumeMuted(audioStreamType)); }