Quick Sign In:  

Forum: VirtualDJ Plugins

Topic: OnPosition, how does it work?

This topic is old and might contain outdated or incorrect information.

HRESULT __stdcall OnPosition(int actualpos) {return 0;}
How does it work?

In fact, I would like to stop a plugin 4 beat after activating it. I have tried the following code but it doesn\'t work:

HRESULT __stdcall CSamplesCatching::OnStart(int pos,int deck)
{
Bpm=SongBpm?SongBpm:22050;
NextAction = pos+(4*Bpm);
return S_OK;
}
HRESULT __stdcall CSamplesCatching::OnPosition(int actualpos)
{
if (actualpos==NextAction)
{
SendCommand(\"effect_activate\",0); //ArrĂȘt du Plugin
}
return S_OK;
}
 

Posted Mon 13 Aug 07 @ 2:50 pm


(Old topics and forums are automatically closed)