private Player() { var enginedir = AppDomain.CurrentDomain.BaseDirectory; if (Is64Bit) { enginedir = Path.Combine(enginedir, @"Engine\x64"); } else { enginedir = Path.Combine(enginedir, @"Engine\x86"); } Bass.Load(enginedir); BassMix.Load(enginedir); BassCd.Load(enginedir); BassFx.Load(enginedir); Bass.PluginLoad(enginedir + "\\bass_aac.dll"); Bass.PluginLoad(enginedir + "\\bass_ac3.dll"); Bass.PluginLoad(enginedir + "\\bass_ape.dll"); Bass.PluginLoad(enginedir + "\\bass_mpc.dll"); Bass.PluginLoad(enginedir + "\\bass_spx.dll"); Bass.PluginLoad(enginedir + "\\bass_tta.dll"); Bass.PluginLoad(enginedir + "\\bassalac.dll"); Bass.PluginLoad(enginedir + "\\bassdsd.dll"); Bass.PluginLoad(enginedir + "\\bassflac.dll"); Bass.PluginLoad(enginedir + "\\bassopus.dll"); Bass.PluginLoad(enginedir + "\\basswma.dll"); Bass.PluginLoad(enginedir + "\\basswv.dll"); Bass.PluginLoad(enginedir + "\\bassmidi.dll"); _callback = MyDownloadProc; _maxfft = (int)(DataFlags.Available | DataFlags.FFT2048); }
/// <inheritdoc /> private void LoadLibs() { Log.Info("Loading bass.dll..."); Bass.Load(NativeLibPath); Log.Info("Loading bassmix.dll..."); BassMix.Load(NativeLibPath); Log.Info("Loading basscd.dll..."); BassCd.Load(NativeLibPath); LoadPlugins("bass_aac.dll", "bass_ac3.dll", "bassalac.dll", "bassflac.dll", "basswma.dll", "basswv.dll"); }