コード例 #1
0
ファイル: VolumeService.cs プロジェクト: aadfPT/StreamsMaster
 public void RaiseSystemVolume()
 {
     _aepv.SetMute(false, new System.Guid());
     for (var i = 0; i < 6; i++)
     {
         _aepv.VolumeStepUp(new System.Guid());
     }
 }
コード例 #2
0
        /// <summary>
        /// Increase the master volume
        /// </summary>
        public void VolumeUp()
        {
            Guid nullGuid;

            nullGuid = Guid.Empty;
            int retVal = iAudioEndpoint.VolumeStepUp(nullGuid);

            if (retVal != 0)
            {
                throw new Exception("IAudioEndpointVolume.SetMute()");
            }
        }
コード例 #3
0
        /// <summary>
        /// Increase the master volume
        /// </summary>
        public void VolumeUp()
        {
            Guid nullGuid;

            //nullGuid = new Guid("{00000000-0000-0000-0000-000000000000}"); // null
            // {dddddddd-dddd-dddd-dddd-dddddddddddd}
            nullGuid = Guid.Empty;
            int retVal = iAudioEndpoint.VolumeStepUp(nullGuid);

            if (retVal != 0)
            {
                throw new Exception("IAudioEndpointVolume.SetMute()");
            }
        }
コード例 #4
0
 public void VolumeStepUp()
 {
     Marshal.ThrowExceptionForHR(_AudioEndPointVolume.VolumeStepUp(Guid.Empty));
 }
コード例 #5
0
        public void VolumeUp()
        {
            int retVal = iAudioEndpoint.VolumeStepUp(GuidEventContext);

            Marshal.ThrowExceptionForHR(retVal);
        }
コード例 #6
0
 /// <summary>
 ///     VolumeChanged Step Up
 /// </summary>
 public void VolumeStepUp()
 {
     ComThread.Invoke(() => Marshal.ThrowExceptionForHR(_audioEndPointVolume.VolumeStepUp(Guid.Empty)));
 }
コード例 #7
0
 /// <summary>
 /// Volume Step Up
 /// </summary>
 public void VolumeStepUp()
 {
     Marshal.ThrowExceptionForHR(audioEndPointVolume.VolumeStepUp(ref notificationGuid));
 }
コード例 #8
0
 public override void VolumeUp()
 {
     endPointVol.VolumeStepUp(ref guidDummy);
 }