Пример #1
0
 public void Dispose()
 {
     S = null;
     _device.Dispose();
     _device = null;
 }
Пример #2
0
        public static void Init(System.Windows.Forms.Control targetControl)
        {
            if (S == null) S = new Sound();
            if (_device == null) _device = new Device();
            _device.SetCooperativeLevel(targetControl,CooperativeLevel.Priority);

            _description = new BufferDescription();
            _description.ControlVolume = true;
            _description.ControlFrequency = true;
        }