Ingreso rápido:  

Forum: VirtualDJ Plugins

Tema: OnPosition, how does it work?

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

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

Mensajes Mon 13 Aug 07 @ 2:50 pm


(Los tópicos y foros antiguos son automáticamente cerrados)