Ejemplo n.º 1
0
        public Effects(int coreHandle)
        {
            handle = coreHandle;
            bool loadbassfx = BassFx.Load();

            _myDSPAddr = new DSPProcedure(SetPreamp);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public Effects(int coreHandle)
        {
            handle = coreHandle;
            bool loadbassfx = BassFx.Load();

            _myDSPAddr = new DSPProcedure(SetPreamp);
            Bass.ChannelSetDSP(handle, _myDSPAddr, IntPtr.Zero, 0);
            InitializeEqualizer();
        }