Accesso rapido:  

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.
 

Inviato Mon 14 Jul 03 @ 4:47 pm
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?
 

Inviato Mon 14 Jul 03 @ 7:16 pm
Please guys. Ive waited ages and no one has helped. One of the support team must know the answer....
 

Inviato Sat 19 Jul 03 @ 3:04 am
Maybe it's a bug.. you could try to get the songpos, then mute the channel and seek back to old songpos + unmute.. dunno :)
 

Inviato Tue 22 Jul 03 @ 9:09 am
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.

 

Inviato Tue 22 Jul 03 @ 11:52 pm
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?
 

Inviato Fri 25 Jul 03 @ 10:50 am
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!!
 

Inviato Fri 25 Jul 03 @ 1:52 pm
Dev staffHome userSenior staffMember since 2003
In which function do you use SendCommand("play") ?

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

Inviato Wed 30 Jul 03 @ 11:22 pm
Its in a separate thread function. Does that make a difference?
 

Inviato Sun 03 Aug 03 @ 10:14 pm
Dev staffHome userSenior staffMember since 2003
Could you send your source code to plugins@virtualdj.com, so we can have a test it here, and see what's wrong?
 

Inviato Wed 06 Aug 03 @ 1:28 pm
DJRobyPRO InfinityMember since 2004
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

 

Inviato Tue 29 Jun 04 @ 11:57 pm
kaleoPRO InfinityMember since 2003
DJRoby:
It seems that it is not compatible with VDJ 2. I will have a look at this.
 

Inviato Wed 30 Jun 04 @ 7:16 am
DJRobyPRO InfinityMember since 2004
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
 

Inviato Wed 30 Jun 04 @ 3:46 pm
kaleoPRO InfinityMember since 2003
Thank you DJRoby :)
 

Inviato Thu 01 Jul 04 @ 3:32 pm


(Vecchi argomenti e forum sono automaticamente chiusi)