public static Version BASS_SFX_GetVersion(int fieldcount) { if (fieldcount < 1) { fieldcount = 1; } if (fieldcount > 4) { fieldcount = 4; } int num = BassSfx.BASS_SFX_GetVersion(); Version result = new Version(2, 4); switch (fieldcount) { case 1: result = new Version(num >> 24 & 255, 0); break; case 2: result = new Version(num >> 24 & 255, num >> 16 & 255); break; case 3: result = new Version(num >> 24 & 255, num >> 16 & 255, num >> 8 & 255); break; case 4: result = new Version(num >> 24 & 255, num >> 16 & 255, num >> 8 & 255, num & 255); break; } return(result); }
public static string BASS_SFX_PluginGetName(int handle) { IntPtr intPtr = BassSfx.BASS_SFX_PluginGetNameW(handle); if (intPtr != IntPtr.Zero) { return(Marshal.PtrToStringUni(intPtr)); } return(null); }
public static BASS_SFX_PLUGININFO BASS_SFX_WMP_GetPlugin(int index) { BASS_SFX_PLUGININFO bass_SFX_PLUGININFO = new BASS_SFX_PLUGININFO(); if (BassSfx.BASS_SFX_WMP_GetPlugin(index, bass_SFX_PLUGININFO)) { return(bass_SFX_PLUGININFO); } return(null); }
public static bool BASS_SFX_WMP_GetPlugin(int index, BASS_SFX_PLUGININFO info) { bool flag = BassSfx.BASS_SFX_WMP_GetPluginW(index, ref info._internal); if (flag) { info.name = Marshal.PtrToStringUni(info._internal.name); info.clsid = Marshal.PtrToStringUni(info._internal.clsid); } return(flag); }
public static int BASS_SFX_WMP_GetPluginCount() { BASS_SFX_PLUGININFO info = new BASS_SFX_PLUGININFO(); int num = 0; while (BassSfx.BASS_SFX_WMP_GetPlugin(num, info)) { num++; } BassSfx.BASS_SFX_GetVersion(); return(num); }