BASS.NET API for the Un4seen BASS Audio LibraryBassWaDspBASS_WADSP_GetModuleCount Method BASS.NET API for the Un4seen BASS Audio Library
Returns the number of modules contained in the loaded Winamp DSP.

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

[DllImportAttribute("bass_wadsp.dll", CharSet = CharSet.Auto)]
public static int BASS_WADSP_GetModuleCount(
	int plugin


Type: SystemInt32
The plugin handle (returned by BASS_WADSP_Load(String, Int32, Int32, Int32, Int32, WINAMPWINPROC)).

Return Value

Type: Int32
The number of available modules or -1 if an error occured. Use BASS_ErrorGetCode to get the error code.

Winamp DSPs might implement multiple different modules within the same DSP plugin.

ERROR CODEDescription
BASS_ERROR_HANDLEThe plugin is not a valid plugin handle.

See Also