BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_PluginGetInfo Method BASS.NET API for the Un4seen BASS Audio Library
Retrieves information on a plugin.

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

public static BASS_PLUGININFO BASS_PluginGetInfo(
	int handle
)

Parameters

handle
Type: SystemInt32
The plugin handle - or 0 to retrieve native BASS information.

Return Value

Type: BASS_PLUGININFO
If successful, an instance of BASS_PLUGININFO is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The plugin information does not change, so the returned info remains valid for as long as the plugin is loaded.

Note: There is no guarantee that the check is complete or might contain formats not being supported on your particular OS/machine (due to additional or missing audio codecs).

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.

Examples

List the formats supported by a plugin:
VB
Dim pluginFlac As Integer = Bass.BASS_PluginLoad("bassflac.dll")
Dim info As BASS_PLUGININFO = Bass.BASS_PluginGetInfo(pluginFlac)
Dim f As BASS_PLUGINFORM
For Each f In info.formats
  Console.WriteLine("Type={0}, Name={1}, Exts={2}", f.ctype, f.name, f.exts)
Next f
int pluginFlac = Bass.BASS_PluginLoad("bassflac.dll");
BASS_PLUGININFO info = Bass.BASS_PluginGetInfo(pluginFlac);
foreach (BASS_PLUGINFORM f in info.formats)
  Console.WriteLine("Type={0}, Name={1}, Exts={2}", f.ctype, f.name, f.exts);
See Also

Reference