BASS.NET API for the Un4seen BASS Audio Library

BassCdLoadMe Method

BASS.NET API for the Un4seen BASS Audio Library
Loads this library into memory. The library will be search in the current application directory.

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

public static bool LoadMe()

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.

The disadvantage of this method is, that the standard plugin support for BASS_StreamCreateFile(String, Int64, Int64, BASSFlag) is not working - so you would need to use the native add-on methods!

Examples

Load BASS and BASSCD from the application's startup path:
C#
Bass.LoadMe();
BassCd.LoadMe();
...
// when not used anymore...
BassCd.FreeMe();
Bass.FreeMe();
See Also

Reference