/// <summary> /// Set Channel Value /// </summary> /// <param name="channelName"></param> /// <param name="v"></param> public void SetChannelValue(uint channelName, float v) { if (channelName >= _channelCount) { return; } _audioEndpointVolume.SetChannelVolumeLevelScalar(channelName, v, Guid.Empty); }
public void SetChannelVolume(uint channel, float level) { int retVal = iAudioEndpoint.SetChannelVolumeLevelScalar(channel, level, GuidEventContext); Marshal.ThrowExceptionForHR(retVal); }