BASS.NET API for the Un4seen BASS Audio Library

BassBASS_PluginLoadDirectory Method (String)

BASS.NET API for the Un4seen BASS Audio Library
Tries to loads all BASS add-ons (bass*.dll) contained in the specified directory.

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

public static Dictionary<int, string> BASS_PluginLoadDirectory(
	string dir
)

Parameters

dir
Type: SystemString
The directory in which to search for BASS add-ons (bass*.dll).

Return Value

Type: DictionaryInt32, String
A hash table containing all successfully loaded BASS add-ons.

The hash table will be constructed as: Key=pluginHandle and Value=filename.

Note: Only stream/music add-ons are loaded (e.g. bass_fx.dll or bassenc.dll are NOT loaded).

Remarks

Internally the BASS_PluginLoad(String) method will be used to load all add-ons contained in the specified directory folder (sub-folders are not scanned as well).
Examples

Dictionary<int, string> loadedPlugIns = Bass.BASS_PluginLoadDirectory("C:\\BASS");
if (loadedPlugIns != null)
{
  foreach (string file in loadedPlugIns.Values)
    Console.Writeln( file );
}
See Also

Reference