Represents a Wasapi Playback Device.
Inheritance: WasapiDevice
        /// <summary>
        /// Get Device By Index.
        /// </summary>
        public static WasapiPlaybackDevice Get(int Device)
        {
            if (Singleton.ContainsKey(Device))
                return Singleton[Device] as WasapiPlaybackDevice;

            WasapiDeviceInfo info;
            if (!BassWasapi.GetDeviceInfo(Device, out info) || info.IsInput)
                throw new ArgumentException("Invalid WasapiPlaybackDevice Index");

            var dev = new WasapiPlaybackDevice(Device);
            Singleton.Add(Device, dev);

            return dev;
        }
        /// <summary>
        /// Get Device By Index.
        /// </summary>
        public static WasapiPlaybackDevice Get(int Device)
        {
            if (Singleton.ContainsKey(Device))
            {
                return(Singleton[Device] as WasapiPlaybackDevice);
            }

            WasapiDeviceInfo info;

            if (!BassWasapi.GetDeviceInfo(Device, out info) || info.IsInput)
            {
                throw new ArgumentException("Invalid WasapiPlaybackDevice Index");
            }

            var dev = new WasapiPlaybackDevice(Device);

            Singleton.Add(Device, dev);

            return(dev);
        }