Deleting parameters-related code from PassthroughAll example

Discussion about the Bidule SDK, post your questions, feature request and plugins here.

Moderators: davidv, seb@plogue

V_ad_im
Posts: 101
Joined: Mon Nov 21, 2011 5:29 pm
Location: Moscow area, Russia

Deleting parameters-related code from PassthroughAll example

Postby V_ad_im » Sun Nov 19, 2017 6:41 am

Hi!

I want to simplify and reduce code of PassthroughAll example for make template for future simple custom MIDI bidules - so, I want to delete all related parameters. Is it possible?

If I set _numParams=0; - yes, builded plugin have not parameters, but if I erase void
PassthroughAll::getParametersInfos(ParameterInfo* pinfos) {},
void
PassthroughAll::getParameterChoices(long id, std::vector<std::string>& vec) {
}
and
void
PassthroughAll::parameterUpdate(long id){
, build failed..

Whats wrong?

Best regards,
Vadim

seb@plogue
Site Admin
Posts: 9592
Joined: Tue Mar 02, 2004 7:23 pm
Location: Montreal
Contact:

Re: Deleting parameters-related code from PassthroughAll example

Postby seb@plogue » Mon Dec 04, 2017 11:24 am

parameterUpdate and getParametersInfos are both virtual methods, i.e. they need to be implemented in any class inheriting from BidulePlugin even if they are empty (there's no code in them).


Return to “Bidule SDK”

Who is online

Users browsing this forum: No registered users and 1 guest