示例#1
0
 /// <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);
 }
示例#2
0
        public void SetChannelVolume(uint channel, float level)
        {
            int retVal = iAudioEndpoint.SetChannelVolumeLevelScalar(channel, level, GuidEventContext);

            Marshal.ThrowExceptionForHR(retVal);
        }