/// <summary> /// Initializes new instance of <see cref="SoundIOOutStream"/> class with specified sound device. /// </summary> /// <param name="device">Render device to stream with.</param> /// <remarks>Increments ref count for specified device.</remarks> public SoundIOOutStream(SoundIODevice device) { if (device == null) { throw new ArgumentNullException("device"); } handle = NativeMethods.SoundIoOutstreamCreate(device.Handle); Device = device; }
/// <summary> /// Initializes new instance of <see cref="SoundIOInStream"/> class with specified sound device. /// </summary> /// <param name="device">Recording device to stream with.</param> /// <remarks>Increments ref count for specified device.</remarks> public SoundIOInStream(SoundIODevice device) { handle = NativeMethods.SoundIoInstreamCreate(device.Handle); Device = device; }