Code Monkey home page Code Monkey logo

bass_vst's People

Contributors

pie62 avatar r10s avatar radio42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

bass_vst's Issues

AccessViolationException in BASS_VST_GetInfo on a ChannelSetDSP(0...) test handle

Hi

Does using GetInfo not work when testing a VST Plugin using ChannelSetDSP(0, ...)? I am getting an AccessViolationException when doing this.
I need to get the plugin information before setting it up on a proper channel because I need to verify that the plugin is an effect, not an instrument.

int handle = BassVst.ChannelSetDSP(0, @"C:\Program Files\VSTPlugins\ReaPlugs\readelay-standalone.dll", BassVstDsp.Default, 0);
if (handle == 0)
    throw new Exception("Error setting DSP: " + Bass.LastError.ToString());

// Issue here:
if (!BassVst.GetInfo(handle, out BassVstInfo vstInfo)) // Access Violation Exception
    throw new Exception("Error getting info: " + Bass.LastError.ToString());

if (vstInfo.IsInstrument)
    throw new Exception("Plugin is not an effect");

if (!BassVst.ChannelRemoveDSP(0, handle))
    throw new Exception("Error removing DSP: " + Bass.LastError.ToString());

Note, I am using ManagedBass.Vst in C# however it is just a wrapper and should not be the cause of this issue. Debugging shows that handle at the point of calling GetInfo is (int)1 so it should be a valid handle. I was unable to find any information specific to this issue in the documentation so maybe I am just messing up somewhere?

Channel count

If was wondering, why the „Steven Slate Drums“ Plugin does not work with Bass_Vst.

In a debugging session, I found out that the count of channels was the problem:
Bass_vst is compiled with 32 channels - This is not sufficiant for the mentioned plugin.

Is there a specific reason for „only“ using 32 Channels?
I also did not found any error message (by using bass.net) with a hint to that problem...

Best regards
Thomas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.