Hi,

I have three ContolObjectThreads for tracking valueChanged events in
Channel1 playposition, Channel2 playposition and the master crossfader.

I am storing the channel playpositions in my class with volatile doubles,
and updating them each time a valueChanged event occurs on that channel.
 (This is my naive method at the moment, which I think needs to be refined.)

Then, when I get a crossfader event, I record the current values of the
playpositions that I have along with the value of the crossfader.

For example:

MasterCrossfader:0.0252757241833457:0.0193490138654952:0.272754671488848


This shows that channel 1 was at playposition 0.02527...,

channel 2 is at : 0.01934...

and the crossfader is at: 0.27275



This system kind of works, but looking at the output generated, I am not
confident that it is the correct way.  Many times, I get duplicate
playpositions in a row when the crossfader is changing:


MasterCrossfader:0.0248450239290381:0.0187344885023211:0.0558569419328911

MasterCrossfader:0.0248450239290381:0.0187344885023211:0.0813743218806509

MasterCrossfader:0.0248450239290381:0.0187344885023211:0.0941330118545307

MasterCrossfader:0.024988590680474:0.0188881198431147:0.11965039180229

Note that the playpositions for channel 1 and 2 were the same for three
crossfader events in a row.



I have tried using both ContolObjectThread and ContolObjectThreadMain with
similar results.


Is there a way for me to get an accurate channel playback postion while in
the middle of handling the mastercrossfader valueChanged event?  Or do I
need to have a method of tracking the positions via the playposition
valueChanged events like I am currently attempting?


Thank you,

-Nathan
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Get Mixxx, the #1 Free MP3 DJ Mixing software Today
http://mixxx.org


Mixxx-devel mailing list
Mixxx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mixxx-devel

Reply via email to