Page 1 of 2
VSTi and audio output
Posted: Tue Apr 08, 2014 7:28 am
by cherri123
VSTi and audio output
Hello to everyone.
Can someone tell me how to get sound from VSTi tool on the sound card or audio output).
I have the code where I can find the virtual tool to open the editor tool and change the settings, but can't output the sound card or audio output.
If it's something I'll post it.

Re: VSTi and audio output
Posted: Tue Apr 08, 2014 7:42 am
by sq4
cherri123 wrote:VSTi and audio output
Hello to everyone.
Can someone tell me how to get sound from VSTi tool on the sound card or audio output).
I have the code where I can find the virtual tool to open the editor tool and change the settings, but can't output the sound card or audio output.
If it's something I'll post it.

Purebasic is capable of hosting Vst's : see my DAW/HOST :
http://www.raxntrax.com/rnt2
Purebasic is even capable of creating Vst's (2.4) : see my plugin :
http://www.raxntrax.com/modulys
I have posted an Asio example in Archive-forum. (native)
Re: VSTi and audio output
Posted: Tue Apr 08, 2014 7:53 am
by cherri123
Thanks for the reply. Very cool rnt2
A little clarification. This is not a plug and a small host.
Re: VSTi and audio output
Posted: Tue Apr 08, 2014 10:05 am
by Joris
cherri123 wrote:VSTi and audio output
...
I have posted an Asio example in Archive-forum. (native)
Where is that Asio example ? Do you have link to that, please ?
Re: VSTi and audio output
Posted: Tue Apr 08, 2014 5:17 pm
by cherri123
Re: VSTi and audio output
Posted: Wed Apr 09, 2014 8:12 am
by Joris
Thanks.
Re: VSTi and audio output
Posted: Wed Apr 09, 2014 8:32 am
by Joris
Does that plug-in have memories (to hold different sequence setups) ?
Can this memories become saved and loaded ?
If so, how many and are these quick and easy to chose, with a midi program change for example ?
(Yeah, sorry but I don't have time yet to explore the plug-in try out)
Re: VSTi and audio output
Posted: Fri Apr 11, 2014 3:28 am
by cherri123
ok...
I can't understand in what a hitch
when I use processReplacing () that from a host takes off an error of reading to the address.
Flag of a host of audioMasterGetTime VstTimeInfo structure.
Re: VSTi and audio output
Posted: Fri Apr 11, 2014 5:43 pm
by Joris
cherri123 I can't help you as I don't understand what you mean by this.
Besides I've never programmed vst(i)'s, but still I'de like to know how too (for future plans, whenever I got the time to do so).
So, whatever info or code samples you have on this in PB I'm interessted.
Re: VSTi and audio output
Posted: Fri Apr 11, 2014 6:00 pm
by sq4
Joris wrote:cherri123 I can't help you as I don't understand what you mean by this.
Besides I've never programmed vst(i)'s, but still I'de like to know how too (for future plans, whenever I got the time to do so).
So, whatever info or code samples you have on this in PB I'm interessted.
@ Joris,
I am the guy from RaXnTraX. (my username on this forum used to be eriansa)
If you are interested in creating Vst's : just let me know.
BTW : I see you are from Belgium too ?
@ cherr123
I really do not understand your question regarding ASIO...Please elaborate.
Re: VSTi and audio output
Posted: Fri Apr 11, 2014 10:16 pm
by Joris
sq4 wrote:@ Joris,
I am the guy from RaXnTraX. (my username on this forum used to be eriansa)
If you are interested in creating Vst's : just let me know.
BTW : I see you are from Belgium too ?
Hi, Belgium guy.
I'm indeed very interested in creating Vst's, at least create one (to start with). Meaning, I ever made a midi program (in GB32) that I still would like to transform into a VST and if possible only in pb code. I downloaded the steinberg sdk's a time ago, but as most or all is in C, I didn't yet make time to explore how things are done. C isn't my favorite. But as selfmade programmer, I still will need to learn, understand the whole vst programming concept.
You as the guy from RaXnTraX, will surely be the correct person to give a help on this. If you prefer we can mail private. (Altijd leuker als iemand je moedertaal verstaat hé.)
Re: VSTi and audio output
Posted: Mon Apr 14, 2014 3:26 am
by cherri123
sq4 wrote:
@ cherr123
I really do not understand your question regarding ASIO...Please elaborate.
ok...
I create a small host for VSTi use.
And I had problems with
ProcessReplasing().
When I use
ProcessReplasing () that the program comes to the end on a host flag
#audioMasterGetTime.
Re: VSTi and audio output
Posted: Mon Apr 14, 2014 10:37 am
by sq4
Please provide a code snippet.
Re: VSTi and audio output
Posted: Wed Apr 16, 2014 4:01 am
by cherri123
sq4 wrote:Please provide a code snippet.
link to a source code :
http://yadi.sk/d/th1gRWlDMXmug
Re: VSTi and audio output
Posted: Wed Apr 16, 2014 8:03 am
by sq4
Code: Select all
If *myAEffect\numOutputs
*ptrOutputBuffers=*myAEffect\numOutputs
EndIf
Can't be correct!
First you need to create buffers according to *myAEffect\numOutputs and then in ProcessReplacing :
you should pass the address of the array containing the pointers of the buffers.
(in C terminology: you pass a pointer to a pointer-> **Buffer) (see SDK)
Pseudo code:
Dim arrIn.i(*myAEffect\numInputs)
Dim arrOut.i(*myAEffect\numOutputs)
arrOut(0)=AllocateMemory(BlockSize*4) etc....
ProcessReplacing(ptrProcess,*myAEffect,@arrIn,@arrOut,BlockSize)
Good luck!
p.s. Please use an English download site.