1. We've introduced thread tags, search within a thread and similar thread search. Read more here.
    Dismiss Notice
  2. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice
  3. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  4. We've released our first Timeline Experimental Preview, our new tool for creating cutscenes and more! To check it out click here.
    Dismiss Notice
  5. Unity 5.5 is now released.
    Dismiss Notice
  6. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  7. Unity 5.6 beta is now available for download.
    Dismiss Notice

Trying to integrate VST.NET into Unity 5.5

Discussion in 'Audio' started by RareFaction, Mar 18, 2017 at 3:28 AM.

  1. RareFaction

    RareFaction

    Joined:
    Saturday
    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:
    Sunday
    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