BASS.NET API for the Un4seen BASS Audio Library

BassCdLoadMe Method (String)

BASS.NET API for the Un4seen BASS Audio Library
Loads this library into memory. The library will be loaded from the given path.

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

public static bool LoadMe(
	string path
)

Parameters

path
Type: SystemString
The path of the directory in which to search.

Return Value

Type: Boolean
, if the module could be loaded successfully, else .
Remarks

This method can be used to make sure, that this specific library has been loaded.

Normally an external library will be loaded into memory when either of the declared methods will be called for the very first time. This results in the very first call to a library method being slower than all subsequent calls.

Moreover some of the BASS libraries and add-ons will introduce new options to the main BASS lib, e.g. new parameters which can be used with BASS_SetConfig(BASSConfig, Int32) or BASS_GetConfig(BASSConfig). But in order to enable BASS using these new options the respective library must have been already loaded. This method can be used to ensure this.

This method can also be used as an alternative way to load a library instead of using the BASS way via BASS_PluginLoad(String). The advantage of this is method here is, that you might locate all your bass dll's in a different directory.

Examples

Load BASS and BASSCD from a different directory:
C#
Bass.LoadMe( @"C:\Development\BASS\_libs" );
BassCd.LoadMe( @"C:\Development\BASS\_libs" );
...
// when not used anymore...
BassCd.FreeMe();
Bass.FreeMe();
See Also

Reference