コード例 #1
0
        /// <summary>
        ///     Loads a WinAmp DSP plug-in and applies it to the mixer
        /// </summary>
        /// <param name="location">The file location of the WinAmp DSP DLL</param>
        public WaPlugin LoadWaPlugin(string location)
        {
            var playing = PlayState == PlayState.Playing;

            if (playing)
            {
                Pause();
            }

            var plugin = SpeakerOutput.LoadWaPlugin(location);

            if (playing)
            {
                Play();
            }

            return(plugin);
        }
コード例 #2
0
 /// <summary>
 ///     Unloads all loaded WinAmp plug-ins.
 /// </summary>
 public void UnloadAllWaPlugins()
 {
     SpeakerOutput.ClearWaPlugin();
 }
コード例 #3
0
 /// <summary>
 ///     Clears the main VST plug-in.
 /// </summary>
 public void ClearMainVstPlugin(int index)
 {
     SpeakerOutput.ClearVstPlugin(index);
 }
コード例 #4
0
 /// <summary>
 ///     Loads a VST plug-in and applies it to the mixer
 /// </summary>
 /// <param name="location">The file location of the VST DLL</param>
 /// <param name="index">The index.</param>
 /// <returns></returns>
 public VstPlugin LoadMainVstPlugin(string location, int index)
 {
     return(SpeakerOutput.LoadVstPlugin(location, index));
 }