コード例 #1
0
        public bool Contains(MMDevice device)
        {
            for (int i = 0; i < Count; i++)
            {
                if (this[i].ID == device.ID)
                    return true;
            }

            return false;
        }
コード例 #2
0
 /// <summary>
 ///     Internal constructor. All accessors to devices should be done through the manager class
 /// </summary>
 /// <param name="device"></param>
 internal AudioDevice(MMDevice device)
 {
     if (device == null)
         throw new Exception("Device cannot be null. Something bad went wrong");
     Device = device;
 }