Пример #1
0
 public MixerLine(IntPtr mixerHandle, int destinationIndex, MixerFlags mixerHandleType)
 {
     this.mixerHandle             = mixerHandle;
     this.mixerHandleType         = mixerHandleType;
     this.mixerLine               = default(MixerInterop.MIXERLINE);
     this.mixerLine.cbStruct      = Marshal.SizeOf(this.mixerLine);
     this.mixerLine.dwDestination = destinationIndex;
     MmException.Try(MixerInterop.mixerGetLineInfo(mixerHandle, ref this.mixerLine, mixerHandleType | MixerFlags.Mixer), "mixerGetLineInfo");
 }
Пример #2
0
 public static extern MmResult mixerGetLineInfo(IntPtr hMixer, ref MixerInterop.MIXERLINE mixerLine, MixerFlags dwInfoFlags);