快速登录:  

Forum: VirtualDJ Plugins

话题: FAO CELL - Using GetInfo Queiries

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Hello wise guru of all things that look matrixy lol

So how exactly do you use the GetInfo query (in transitions). I have tried it in this way with no success...

In the private: part of the class, I have defined an integer

int CurrentPosA; // Current position of track A

And then in the render section I have tried calling a value using get info

int CurrentPosA = GetInfo("action 1",&PlayPos);

The dll builds but no success, I know my other code is OK so how do I actually use this. I know from experience that this will actually be completely different

Can you rewrite that line as I'm nearing completion of a whole set of plugins for turntablists which when I'm finished I will submit for release.

Thanks again for advice,

IK
 

发表时间 Tue 22 Jan 08 @ 4:13 pm
djcelPRO InfinityModeratorMember since 2004
Ian Knowles wrote :
int CurrentPosA = GetInfo("action 1",&PlayPos);

No, it doesn't work like that. GetInfo() is:
HRESULT (__stdcall *GetInfo)(char *query,void *result); // get infos from VirtualDJ



So it's:
HRESULT hr;

int CurrentPosA;

hr=GetInfo("PlayPos 1",&CurrentPosA);
if(FAILED(hr)) return hr;
 

发表时间 Tue 22 Jan 08 @ 4:39 pm
Thought it would be somthing like that,

Cheers again,
 

发表时间 Wed 23 Jan 08 @ 2:37 am
Also Cel,

Is there a way of using GetInfo for video_fx_param_4 and 5, didnt see that on the list but would like to use these!
 

发表时间 Wed 23 Jan 08 @ 6:44 am
djcelPRO InfinityModeratorMember since 2004
Do not forget that you can use GetInfo("Status")

More complicated (maybe for the future):
You can also work with the sound too with GetInfo("VideoSound") which returns a sound buffer of 512 samplesthat you can analyse then (or using with FFT)
 

发表时间 Wed 23 Jan 08 @ 8:26 am
djcelPRO InfinityModeratorMember since 2004
Ian Knowles wrote :
Is there a way of using GetInfo for video_fx_param_4 and 5, didnt see that on the list but would like to use these!

I'm not sure to understand the goal
 

发表时间 Wed 23 Jan 08 @ 8:32 am
I can see where your going with that. e.g. volume of the audio could control elements of the video...

I just want to be able to use a midi function other than level as that effects the sound aswell as the video. I thought video_fx_param would be good but I dont know its exact name within VDJ.

have you seen my little video demo in General Discussion?...


 

发表时间 Wed 23 Jan 08 @ 8:36 am
djcel wrote :
Ian Knowles wrote :
Is there a way of using GetInfo for video_fx_param_4 and 5, didnt see that on the list but would like to use these!

I'm not sure to understand the goal


I just want an otherwise redundant function that I can assign midi too and a plugin can read to connect the upfaders to withought using level... If you watch the video it fades on the upfaders but the audio is processed twice.

 

发表时间 Wed 23 Jan 08 @ 8:39 am
Right been thinking about it I meant video_trans_param and video_trans_param_2

which are sliders.. (thats where I have been going wrong)

How do I add?

 

发表时间 Wed 23 Jan 08 @ 8:58 am
djcelPRO InfinityModeratorMember since 2004
//-------------------------------------------------------------------------------------------

class CDeepSlide : public IVdjPluginVideoTransition
{
public:
HRESULT __stdcall OnLoad();
HRESULT __stdcall OnParameter(int id);

private:
int SliderValue;
float b;
};


//---------------------------------------------------------------------------------------------
HRESULT __stdcall CDeepSlide::OnLoad()
{
DeclareParameter(&SliderValue,VDJPARAM_SLIDER,0,"Depth",4096);

OnParameter(0);
return S_OK;
}
//---------------------------------------------------------------------------------------------
HRESULT __stdcall CDeepSlide::OnParameter(int id)
{
b=SliderValue/float(4096);

SendCommand("effect_redraw",0);

return S_OK;
}
 

发表时间 Wed 23 Jan 08 @ 9:48 am
Yep,

Worked a treat...

Cheers again
 

发表时间 Wed 23 Jan 08 @ 2:30 pm


(陈旧帖子或论坛版块会自动关闭)