Assembly: Bass.Net (in Bass.Net.dll) Version: 18.104.22.168
public static bool LoadMe( string path )
Public Shared Function LoadMe ( path As String ) As Boolean
- Type: SystemString
The path of the directory in which to search.
Return ValueType: Boolean
, if the module could be loaded successfully, else .
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.
Bass.LoadMe( @"C:\Development\BASS\_libs" ); BassFx.LoadMe( @"C:\Development\BASS\_libs" ); ... // when not used anymore... BassFx.FreeMe(); Bass.FreeMe();