/// <summary>Adds given DeviceVolumeChanged listener</summary> public static void AddDeviceVolumeChangedListener(OnDeviceVolumeChanged listener) { NativeSystemVolume systemVolume = Instance.systemVolume; systemVolume.DeviceVolumeChanged += listener; }
/// <summary>Gets the AudioOutputDevices of this device</summary> public static AudioOutputDevice[] GetAudioOutputDevices() { NativeSystemVolume systemVolume = Instance.systemVolume; return(systemVolume.AudioOutputDevices); }
/// <summary>Removes given SystemVolumeChanged listener</summary> public static void RemoveSystemVolumeChangedListener(OnSystemVolumeChanged listener) { NativeSystemVolume systemVolume = Instance.systemVolume; systemVolume.SystemVolumeChanged -= listener; }
/// <summary>Gets the supported AudioStreamTypes of this platform</summary> public static AudioStreamType[] GetSupportedAudioStreamTypes() { NativeSystemVolume systemVolume = Instance.systemVolume; return(systemVolume.SupportedAudioStreamTypes); }