Using VST2 to feed NAudio output into StereoTool VST #71
Replies: 1 comment 1 reply
-
No, probably not ;-) So let me get this right. You have an NAudio audio source that you want to pipe through StereoTool and StereoTool can behave as a VST plugin. Is that correct? NAudio (in) => VST.NET Host => StereoTool VST plugin => NAudio (out) I see that StereoTool support the VST2 plugin standard which is what VST.NET does - we do not support VST3 yet :-(. I would suggest you take a look at the Host sample: https://github.com/obiwanjacobi/vst.net/tree/master/Source/Samples Roughly you would have to:
A VST host will manage the one VST plugin, which makes it easier. It will tell the plugin what the sample rate is and how big the buffers are, how many audio channels (stereo I presume, so 2) etc. The host implements the Start with loading the StereoTool in the Host sample app and examine (debug) the code to see what happens. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Also previously posted on the NAudio Github forum and the StereoTool forum.
Does anyone have a working c# example of piping through NAudio output audio to StereoTool via VST?
This is a hobby project - not a commercial one; I'm making my own priivate "radio" intranet station. After a learning curve, I have a working NAudio player which schedules and plays audio files perfectly. I now need to take the output from that application and feed it into StereoTool which does volume levelling and various other processing. StereoTool supports VST.
https://www.thimeo.com/stereo-tool/
I am running on Windows 10.0 using Visual Studio 2022 (community edition) and (in accordance with the VST.NET2 instructions) have set the target environment to be NET6.0. My project uses Winforms (with .net) template. CPU type is set to "x64;x86" in the project file XML.
So, as this is all new to me, I asked CoPilot to find me code that would give me a simple-as-possible working example of this and the code it found/suggested is down below. My issue is that - even having installed NAudio and VST.NET2 using Nuget I am seeing errors which make me think that perhaps this code is old and out of date but it's equally possible that I am doing something utterly stoopid!
For example in the line
public class HostCommandStub : IVstHostCommandStub
I get the error: "The type or namespace name 'IVstHostCommandStub' could not be found (are you missing a using directive or an assembly reference?)
All the documentation says that the definition for IVstHostCommandStub is in the VST libraries I am using - as in
I get the same error for the line
public IVstPluginContext PluginContext { get; set; }
Here is the complete code that I got suggested - no idea where Co-Pilot got it from!
Thanks in advance for any assistance with this.
Alan T
Cornwall UK.
Beta Was this translation helpful? Give feedback.
All reactions