Anmelden:     


Forum: VirtualDJ Plugins

Topic: sample source code compatible with VirtualDJ2021 - Page: 2

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

locodog wrote :
look at this, OnLoad() declares your params, OnParameter() is called when the param is adjusted

HRESULT VDJ_API CLocoDog4::OnParameter(int id)
{
switch (id)
{
case LocoDog4_Param_Slider_Vol:
parSliderVol;
break;

}


return S_OK;
}




parSliderVol;

is a sentence that has only variable name;

What does this sentence do?

 

Yes something is bad here...

as parSliderVol is declared as a variable:
float parSliderVol;
and defined to contain slider value :
DeclareParameterSlider(&parSliderVol, LocoDog4_Param_Slider_Vol, "Volume", "VOL", 1.0f);

// there is something wrong...
case LocoDog4_Param_Slider_Vol:
// parSliderVol; // can't be used alone like that
// the value in parSliderVol was updated; you can use it right now to follow your needs
// in this example (simple volume) parSliderVol don't need to be used at all
break;
 

I had other stuff going on testing various curve types.
 

Can we access the buffer's element at the CuePoint?

If buffer[x] is at the CuePoint, how is x written in source code?
 

How can we realize graphical user interface like beatgrid?
How did this developer draw this?
 

 

Your plugin can implement OnGetUserInterface, set the pluginInterface Type to VDJINTERFACE_SKIN, and fill Xml with a pointer to xml data and ImageBuffer/ImageSize to a png image.
Those will then be used like a regular vdj skin.
 

Can we find sample source code with GUI other than this page?

https://www.virtualdj.com/wiki/Developers.html
Audio plugin (DSP) - Example 1 / Audio plugin (DSP) - Example 2
Audio plugin (Buffer DSP)

I'd like to study in more detail.
 

Never saw one other than "Basic plugin (with skin interface)" which is self explanatory
Only setting raw xml data in pluginInterface->Xml and raw png data in pluginInterface->ImageBuffer and png size in pluginInterface->ImageSize is just enough
the example shows both how to bundle the skin in a windows resource file (as a bmp/png and a xml) and how to load from external file (mac version)
if using VisualStudio 2019... create the resource is a is a real pain.... but it's VisualStudio 2019 related
 



(Alte Themen und Foren werden automatisch geschlossen)