0

I'm trying to write a simple VST host in C# using NAudio and VST.NET. I don't know how to get output audio buffers with generator/instrument VST and pass it to NAudio. Has someone did something like that and can share his/her experience with me?

  • Please provide enough code so others can better understand or reproduce the problem. – Community Mar 18 '22 at 12:22
  • Perhaps this will help? https://github.com/perivar/AudioVSTToolbox – obiwanjacobi Mar 19 '22 at 14:07
  • Thanks @obiwanjacobi ! This will definitely help me. Quick question: Why does it only work fine when I compile it with x86 configuration (when I tried x64 configuration VSTs couldn't be loaded), is there a way to compile it with x64 configuration and get it working with 64-bit VSTs? – Jonatan Czarniecki Mar 22 '22 at 11:16
  • If you compile for 64-bit, the plugins also have to be 64-bit. Are they? – obiwanjacobi Mar 23 '22 at 05:10
  • Yeah, I tried compiling for 64-bit and neither 64-bit nor 32-bit plugins worked. I only got dialog saying: _"Could not load file or assembly 'Jacobi.Vst.Interop, Version=1.1.0.0, Culture=neutral, PublicKeyToken=fa678e13c1efc859' or one of its dependencies. An attempt was made to load a program with an incorrect format."_ – Jonatan Czarniecki Mar 25 '22 at 10:09

0 Answers0