BASS.NET API for the Un4seen BASS Audio LibraryWINAMP_DSPFindPlugins Method BASS.NET API for the Un4seen BASS Audio Library
Finds all Winamp DSP plugins contained in a given directory and stores all related information in the PlugIns list.

Namespace: Un4seen.Bass.AddOn.WaDsp
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public static void FindPlugins(
	string path
)

Parameters

path
Type: SystemString
The directory in which to search for Winamp DSP plugins.
Remarks

Using this method subsequently is allowed and ensures, that new Winamp plugins can be loaded and already loaded Winamp plugins are not loaded twice.

Use the PlugIns property to access all found Winamp DSP plugins.

Note, that when calling this method multiple times only newly found Winamp plugins are added to the PlugIns list, already existing plugins will not be loaded or rescanned again.

Examples

VB
WINAMP_DSP.BASS_WADSP_FindPlugins("C:\Program Files\Winamp\Plugins")
Me.listBox1.Items.AddRange(WINAMP_DSP.PlugIns)
...
' and display all modules out of a certain dsp...
Dim dsp As WINAMP_DSP = CType(Me.listBox1.SelectedItem, WINAMP_DSP)
If dsp.modulecount > 0 Then
  ' display all modules
  Me.comboBox1.Items.Clear()
  Me.comboBox1.Items.AddRange(dsp.modulenames)
  Me.comboBox1.SelectedIndex = 0
End If
WINAMP_DSP.FindPlugins("C:\\Program Files\\Winamp\\Plugins");
this.listBox1.Items.AddRange(WINAMP_DSP.PlugIns);
...
// and display all modules out of a certain dsp...
WINAMP_DSP dsp = (WINAMP_DSP)this.listBox1.SelectedItem;
if (dsp.modulecount > 0)
{
  // display all modules
  this.comboBox1.Items.Clear();
  this.comboBox1.Items.AddRange(dsp.modulenames);
  this.comboBox1.SelectedIndex = 0;
}
See Also

Reference