示例#1
0
 public void FreeStream()
 {
     try
     {
         if (_handle != 0)
         {
             _Length = 0;
             // Position = -1;
             Bass.StreamFree(_handle);
             Bass.ChannelStop(_handle); // (StreamFree) Stop Playback.
             Bass.MusicFree(_handle);
             _handle = 0;
         }
     }
     catch { }
 }
示例#2
0
 /// <summary>
 /// Stop playing Silence.
 /// </summary>
 /// <returns>true on success, else false.</returns>
 public bool Stop() => Bass.ChannelStop(_handle);