public void Dispose() { S = null; _device.Dispose(); _device = null; }
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; }