Accesso rapido:  

Forum: VirtualDJ Plugins

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

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

twagaPRO InfinityMember since 2009
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?

 

Inviato Mon 13 Jul 20 @ 5:56 am
NicotuxHome userMember since 2014
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;
 

Inviato Mon 13 Jul 20 @ 6:31 am
locoDogPRO InfinityModeratorMember since 2013
I had other stuff going on testing various curve types.
 

Inviato Mon 13 Jul 20 @ 11:36 am
twagaPRO InfinityMember since 2009
Can we access the buffer's element at the CuePoint?

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

Inviato Tue 21 Jul 20 @ 3:28 pm
twagaPRO InfinityMember since 2009
How can we realize graphical user interface like beatgrid?
How did this developer draw this?
 

Inviato Tue 28 Jul 20 @ 2:40 pm
twagaPRO InfinityMember since 2009
 

Inviato Tue 28 Jul 20 @ 2:40 pm
AdionPRO InfinityCTOMember since 2006
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.
 

Inviato Tue 28 Jul 20 @ 2:55 pm
twagaPRO InfinityMember since 2009
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.
 

Inviato Fri 31 Jul 20 @ 2:56 am
NicotuxHome userMember since 2014
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
 

Inviato Fri 31 Jul 20 @ 5:35 am


(Vecchi argomenti e forum sono automaticamente chiusi)