This project has moved and is read-only. For the latest updates, please go here.

VST.NET Host - Simple way to output Audio/WAV?

Topics: Audio, Getting Started, Host Development, VST.NET Core, VST.NET Framework
May 27, 2011 at 11:26 PM
Edited May 27, 2011 at 11:35 PM

Hi all,

I'm currently using VST.NET as a host (based off the Sample Jacobi.Vst.Samples.Host source code) for a 3rd party VSTi plugin. However I have no idea how to get the thing to output audio... I've found a couple of examples on the board for NAudio and PortAudioSharp, but I just can't get my head around them or how they work.

I just want to have the ability to hear the plugin out the soundcard, and in future dump to a WAV file. Can anyone provide a brief tutorial?


May 30, 2011 at 9:19 AM

Processing audio is done in small chunks called audio buffers. These buffers contain a number of samples and can be processed by plugins. Depending on the library/framework you use you pass the information in these audio buffers the the output. Some technologies, like ASIO (see also ASIO.NET on, call you -using a delegate- everytime you need to supply new audio samples to output. Be aware that you may have to convert the sample values in the audio buffers [-1, 1] to a different value range.

I know there are some people here that have build VST.NET hosts, perhaps they could augment the picture.

Note that the VST.NET Host sample only demonstrates how to use the Host API, it is NOT a blue print for writing a solid host application!

May 31, 2011 at 2:22 AM
Edited May 31, 2011 at 2:22 AM

Hi Jimbo,

I'd suggest you take a look at my post about PortAudioSharp class for VST output audio :

I also posted code and comments to achieve playback using NAudio but IMO PortAudioSharp is less convulated and more stable :

Feel free to ask questions if you have trouble implementing specific feature.