快速登录:  

Forum: VirtualDJ Plugins

话题: OnPosition, how does it work?

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

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;
}
 

发表时间 Mon 13 Aug 07 @ 2:50 pm


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