Exemple #1
0
 /// <summary>
 /// Creates a new instance of <see cref="Silence"/>.
 /// </summary>
 /// <param name="Device">The <see cref="PlaybackDevice"/> to use.</param>
 public Silence(PlaybackDevice Device)
 {
     _handle = Bass.CreateStream(44100, 1, BassFlags.Byte, (h, b, l, u) => l, IntPtr.Zero);
     Bass.ChannelSetDevice(_handle, Device.Index);
     Bass.ChannelSetAttribute(_handle, ChannelAttribute.Volume, 0);
 }