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

            return false;
        }
 /// <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;
 }