Entra:     


Forum: VirtualDJ Plugins

Topic: Plugin Coding Problems

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

HI

I am writing a plugin in C++ and have having some probs when using the SendCommand() function.

I have paused the track using :

TSongInfos theInfo;
GetSongInfos(Desk,&theInfo);
SendCommand(Desk,theInfo.PlayPos,"Pause");

And now i need to resume/play it from where it is.

When i use:

SendCommand(Desk,theInfo.PlayPos,"Play");

The track does not instantly play. It only plays if u drag the waveform a tiny bit.

Anyone know a way of playin the track instantly from where it is?

Cheers
 

Inviato Sun 13 Jul 03 @ 11:14 am
Use -1 as a position to perform the action at once.
 

OK Cheers. Thats works. But there is still a delay of 0.5s before the song plays. Anyway i can remove this as it sounds shit at the mo?
 

Please guys. Ive waited ages and no one has helped. One of the support team must know the answer....
 

Maybe it's a bug.. you could try to get the songpos, then mute the channel and seek back to old songpos + unmute.. dunno :)
 

Well i dont think that would really solve my problem.

If i mute the channel there will still be a pause in the audio playback which is currently the problem.

Theres no way its a bug, i think its to do with the fact that new samples need to be computed. One of the support team will know then answer, please help. Ive been stuck on this 4 over two weeks now


Thanks anyways mate.

 

Did you try SendCommand(Desk,-1,"Play"); instead of SendCommand(Desk,theInfo.PlayPos,"Play");

Some message in the forum suggested that -1 would not cause delay .. strange eh?
 

Yeah...

If you read above you will see that someone suggested that ages ago. I have tryied using -1 it works, but as i said there is a delay of 0.5s b4 song starts to play.

Thanks anyways, least someone is trying to help!!
 

In which function do you use SendCommand("play") ?

Is it on ComputeNewSamples, or in a separate thread function ?
 

Its in a separate thread function. Does that make a difference?
 

Could you send your source code to plugins@virtualdj.com, so we can have a test it here, and see what's wrong?
 

This message is for anyone who can help me with the "sample plugin". Im trying to figure out its features but i notice no changes in the song. Your suggestions are greatly appreciated.

ty
Dj Roby

 

DJRoby:
It seems that it is not compatible with VDJ 2. I will have a look at this.
 

Thanks again Kaleo!!

By the way your plugins are truley amazing. Thanks for all your generous contributions to VDJ because they have literally taken my mixes to another level.

Way to go!!
DJ Roby
 

Thank you DJRoby :)
 



(Vecchi argomenti e forum sono automaticamente chiusi)