VSTi and audio output

Just starting out? Need help? Post your questions and find answers here.
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

VSTi and audio output

Post 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. :(
sq4
User
User
Posts: 98
Joined: Wed Feb 26, 2014 3:16 pm
Contact:

Re: VSTi and audio output

Post 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)
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

Re: VSTi and audio output

Post by cherri123 »

Thanks for the reply. Very cool rnt2
A little clarification. This is not a plug and a small host.
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: VSTi and audio output

Post 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 ?
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

Re: VSTi and audio output

Post by cherri123 »

Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: VSTi and audio output

Post by Joris »

Thanks.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: VSTi and audio output

Post by Joris »

cherri123 wrote:...Purebasic is even capable of creating Vst's (2.4) : see my plugin : http://www.raxntrax.com/modulys
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)
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

Re: VSTi and audio output

Post 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.
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: VSTi and audio output

Post 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.
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
sq4
User
User
Posts: 98
Joined: Wed Feb 26, 2014 3:16 pm
Contact:

Re: VSTi and audio output

Post 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.
Joris
Addict
Addict
Posts: 890
Joined: Fri Oct 16, 2009 10:12 am
Location: BE

Re: VSTi and audio output

Post 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é.)
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

Re: VSTi and audio output

Post 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.
sq4
User
User
Posts: 98
Joined: Wed Feb 26, 2014 3:16 pm
Contact:

Re: VSTi and audio output

Post by sq4 »

Please provide a code snippet.
cherri123
User
User
Posts: 32
Joined: Tue Apr 13, 2010 5:39 am

Re: VSTi and audio output

Post by cherri123 »

sq4 wrote:Please provide a code snippet.
link to a source code : http://yadi.sk/d/th1gRWlDMXmug
sq4
User
User
Posts: 98
Joined: Wed Feb 26, 2014 3:16 pm
Contact:

Re: VSTi and audio output

Post 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.
Post Reply