setProgram doesn't work in VST SDK 2.4?

VST, AU, AAX, CLAP, etc. Plugin Virtual Effects Discussion
Post Reply New Topic
RELATED
PRODUCTS

Post

I find the 'adelay' in VST DSK 2.4 cannot support setProgram!

I try to test whether the method 'setProgram' is executed when I select a program in the program list.

At the end of the method "void ADelay::setProgram (long program)", I insert the following line:

MessageBox(NULL,"!!!","",0);

Because I think if the method is executed, I would see the message box popupped.

After I update the dll, I see the message popupped during the Nuendo is launching.

Then I insert adelay into an insert slot of an audio track, I see the message too.

But when I select a program from the program list of adelay, I could not see the message any more. (I think it should be poppuped in this condition!!)

Why?
And How can I make it work?

I do the same things in VST DSK 2.3' delay, and I see the message when selecting programs.

Post

Hi, change

void ADelay::setProgram(long program)

to

ADelay::setProgram(VstInt32 program)

then it should work..

Post

Oh!

The derived member method is not the same type as its parent class!

Post

Thanks!!

Post

And what if it doesn't even work in vst 2.3?
The host(Cubase SE3) simply doesn't call it when changing programs, but calls setParameter for all the parameters instead. I thought I understood the principle, but obviously I did not...
Shouldn't setProgram(long program) be called everytime you change your program? Or is "preset" something different?
Thank you, I'm sorry my questions will never end.
Sören
und doch, doch, und doooooch!

Post Reply

Return to “Effects”