Пример #1
0
        internal AudioMeterInformation(IAudioMeterInformation realInterface)
        {
            int hardwareSupp;

            audioMeterInformation = realInterface;
            Marshal.ThrowExceptionForHR(audioMeterInformation.QueryHardwareSupport(out 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);

        }