/// <summary> /// Get Channel Value /// </summary> /// <param name="channelName"></param> /// <returns></returns> public float GetChannelValue(uint channelName) { if (channelName >= _channelCount) { return(0); } _audioEndpointVolume.GetChannelVolumeLevelScalar(channelName, out float level); return(level); }
public float GetChannelVolume(uint channel) { float level = 0.0F; int retVal = iAudioEndpoint.GetChannelVolumeLevelScalar(channel, ref level); Marshal.ThrowExceptionForHR(retVal); return(level); }
public AudioDeviceChannel(IAudioEndpointVolume deviceVolume, uint index) { _index = index; _deviceVolume = deviceVolume; _level = _deviceVolume.GetChannelVolumeLevelScalar(index); }