Example #1
0
 public Mixer(int mixerIndex)
 {
     if (mixerIndex < 0 || mixerIndex >= Mixer.NumberOfDevices)
     {
         throw new ArgumentOutOfRangeException("mixerID");
     }
     this.caps = default(MixerInterop.MIXERCAPS);
     MmException.Try(MixerInterop.mixerGetDevCaps((IntPtr)mixerIndex, ref this.caps, Marshal.SizeOf(this.caps)), "mixerGetDevCaps");
     this.mixerHandle     = (IntPtr)mixerIndex;
     this.mixerHandleType = MixerFlags.Mixer;
 }
Example #2
0
 public static extern MmResult mixerGetDevCaps(IntPtr nMixerID, ref MixerInterop.MIXERCAPS mixerCaps, int mixerCapsSize);