Пример #1
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }

            // Clean up BASS Resources
            try
            {
                // Some Winamp dsps might raise an exception when closing
                BassWaDsp.BASS_WADSP_Free();
            }
            catch {}
            Bass.BASS_Stop();
            Bass.BASS_Free();

            base.Dispose(disposing);
        }
Пример #2
0
 /// <summary>
 /// 释放DSP支持模块
 /// </summary>
 public static void Free()
 {
     BassWaDsp.BASS_WADSP_Free();
 }