Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Trying to integrate VST.NET into Unity 5.5

Discussion in 'Audio & Video' started by RareFaction, Mar 18, 2017.

  1. RareFaction

    RareFaction

    Joined:
    Mar 18, 2017
    Posts:
    1
    I would like to write a VST Host in Unity 5.5 using VST.NET.

    My general plan is to pass float[] data from OnAudioFilterRead to a VST through said VST Host, process the data, and then play it.

    I have downloaded the VST.NET source and compiled the Core, Framework, and Interop .DLL projects against the .NET 2.0 framework (which was not fun) because Unity does not support the .NET 4.0 Framework.

    The Core and Framework DLLs are able to be imported into Unity, and I can reference their namespaces in my code. However, while the Interop DLL does not throw any console errors when I add it to Plugins/, I am unable to reference namespaces or classes within the Interop DLL from my C# code. The Interop DLL does contain unmanaged code.

    ILSpy confirms that all three .DLLs are built against the .NET 2.0 Runtime. I am able to reference namespaces and classes from a fresh, non-Unity VS2015 C# project.

    A .ZIP file containing all three .DLLs is attached, and any help would be much appreciated. I know I am not the first person to attempt this feat, as forum / internet searches have revealed.
     

    Attached Files:

  2. VSTdotNET

    VSTdotNET

    Joined:
    Mar 19, 2017
    Posts:
    1
    If your goal is to host plugins inside Unity you need to write a VST host, which can be pretty complex depending on the features you wish to support.

    Check out the Host example code (on codeplex-source) to get an idea for how the API works. You should not have to change the VST binaries in any way.

    Marc
    Author of VST.NET