コード例 #1
0
 internal AudioMeterInformation(IAudioMeterInformation realInterface)
 {
     _AudioMeterInformation = realInterface;
     Marshal.ThrowExceptionForHR(_AudioMeterInformation.QueryHardwareSupport(out int HardwareSupp));
     _HardwareSupport = (EEndpointHardwareSupport)HardwareSupp;
     _Channels        = new AudioMeterInformationChannels(_AudioMeterInformation);
 }
コード例 #2
0
        internal AudioMeterInformation(IAudioMeterInformation realInterface)
        {
            int hardwareSupp;

            audioMeterInformation = realInterface;
            Marshal.ThrowExceptionForHR(audioMeterInformation.QueryHardwareSupport(out hardwareSupp));
            hardwareSupport = (EEndpointHardwareSupport)hardwareSupp;
            channels        = new AudioMeterInformationChannels(audioMeterInformation);
        }
コード例 #3
0
        internal AudioMeterInformation(IAudioMeterInformation realInterface)
        {
            this.audioMeterInformation = realInterface;
            int num;

            Marshal.ThrowExceptionForHR(this.audioMeterInformation.QueryHardwareSupport(out num));
            this.hardwareSupport = (EEndpointHardwareSupport)num;
            this.channels        = new AudioMeterInformationChannels(this.audioMeterInformation);
        }
コード例 #4
0
		internal AudioMeterInformation(IAudioMeterInformation realInterface)
		{
			int HardwareSupp;

			_AudioMeterInformation = realInterface;
			Marshal.ThrowExceptionForHR(_AudioMeterInformation.QueryHardwareSupport(out HardwareSupp));
			_HardwareSupport = (EEndpointHardwareSupport) HardwareSupp;
			_Channels = new AudioMeterInformationChannels(_AudioMeterInformation);
		}
コード例 #5
0
 internal AudioEndpointVolume(IAudioEndpointVolume realEndpointVolume)
 {
     _AudioEndPointVolume = realEndpointVolume;
     _Channels            = new AudioEndpointVolumeChannels(_AudioEndPointVolume);
     _StepInformation     = new AudioEndpointVolumeStepInformation(_AudioEndPointVolume);
     Marshal.ThrowExceptionForHR(_AudioEndPointVolume.QueryHardwareSupport(out uint HardwareSupp));
     _HardwareSupport = (EEndpointHardwareSupport)HardwareSupp;
     _VolumeRange     = new AudioEndPointVolumeVolumeRange(_AudioEndPointVolume);
     _CallBack        = new AudioEndpointVolumeCallback(this);
     Marshal.ThrowExceptionForHR(_AudioEndPointVolume.RegisterControlChangeNotify(_CallBack));
 }
コード例 #6
0
        internal AudioEndpointVolume(IAudioEndpointVolume realEndpointVolume)
        {
            uint HardwareSupp;

            _AudioEndPointVolume = realEndpointVolume;
            _Channels = new AudioEndpointVolumeChannels(_AudioEndPointVolume);
            _StepInformation = new AudioEndpointVolumeStepInformation(_AudioEndPointVolume);
            Marshal.ThrowExceptionForHR(_AudioEndPointVolume.QueryHardwareSupport(out HardwareSupp));
            _HardwareSupport = (EEndpointHardwareSupport)HardwareSupp;
            _VolumeRange = new AudioEndPointVolumeVolumeRange(_AudioEndPointVolume);
            _CallBack = new AudioEndpointVolumeCallback(this);
            Marshal.ThrowExceptionForHR(_AudioEndPointVolume.RegisterControlChangeNotify( _CallBack));
        }
コード例 #7
0
        /// <summary>
        /// Creates a new Audio endpoint volume
        /// </summary>
        /// <param name="realEndpointVolume">IAudioEndpointVolume COM interface</param>
        internal AudioEndpointVolume(IAudioEndpointVolume realEndpointVolume)
        {
            uint hardwareSupp;

            audioEndPointVolume = realEndpointVolume;
            channels            = new AudioEndpointVolumeChannels(audioEndPointVolume);
            stepInformation     = new AudioEndpointVolumeStepInformation(audioEndPointVolume);
            Marshal.ThrowExceptionForHR(audioEndPointVolume.QueryHardwareSupport(out hardwareSupp));
            hardwareSupport = (EEndpointHardwareSupport)hardwareSupp;
            volumeRange     = new AudioEndpointVolumeVolumeRange(audioEndPointVolume);
            callBack        = new AudioEndpointVolumeCallback(this);
            Marshal.ThrowExceptionForHR(audioEndPointVolume.RegisterControlChangeNotify(callBack));
        }
コード例 #8
0
ファイル: AudioEndpointVolume.cs プロジェクト: zouhunter/SAEA
        internal AudioEndpointVolume(IAudioEndpointVolume realEndpointVolume)
        {
            this.audioEndPointVolume = realEndpointVolume;
            this.channels            = new AudioEndpointVolumeChannels(this.audioEndPointVolume);
            this.stepInformation     = new AudioEndpointVolumeStepInformation(this.audioEndPointVolume);
            uint num;

            Marshal.ThrowExceptionForHR(this.audioEndPointVolume.QueryHardwareSupport(out num));
            this.hardwareSupport = (EEndpointHardwareSupport)num;
            this.volumeRange     = new AudioEndpointVolumeVolumeRange(this.audioEndPointVolume);
            this.callBack        = new AudioEndpointVolumeCallback(this);
            Marshal.ThrowExceptionForHR(this.audioEndPointVolume.RegisterControlChangeNotify(this.callBack));
        }
コード例 #9
0
        /// <summary>
        /// Creates a new Audio endpoint volume
        /// </summary>
        /// <param name="realEndpointVolume">IAudioEndpointVolume COM interface</param>
        internal AudioEndpointVolume(IAudioEndpointVolume realEndpointVolume)
        {
            uint hardwareSupp;

            audioEndPointVolume = realEndpointVolume;
            channels = new AudioEndpointVolumeChannels(audioEndPointVolume);
            stepInformation = new AudioEndpointVolumeStepInformation(audioEndPointVolume);
            Marshal.ThrowExceptionForHR(audioEndPointVolume.QueryHardwareSupport(out hardwareSupp));
            hardwareSupport = (EEndpointHardwareSupport)hardwareSupp;
            volumeRange = new AudioEndpointVolumeVolumeRange(audioEndPointVolume);
            callBack = new AudioEndpointVolumeCallback(this);
            Marshal.ThrowExceptionForHR(audioEndPointVolume.RegisterControlChangeNotify(callBack));
        }