This seems to be almost the definitive solution for most of the issues related
to the time display widget (at least in "min/sec/msec" mode).
Change the song::getMilliseconds() method to:
inline int getMilliseconds( PlayModes playMode ) const
{
return ( m_playPos[playMode].getTicks()*60*1000/48 )/getTempo();
}
This makes it possible to get the milliseconds from any play mode. Also, the
m_elapsedMilliSeconds member variable and song::setMilliSeconds() method become
useless.
However, there is one more thing: the time display widget needs a way to know
which play mode to get the elapsed milliseconds from. Due to my limited
experience with Qt, I prefer someone else to work on this part.
Also, the TimeDisplayWidget class currently calls song::getMilliseconds()
without any parameter, while this new version of the method requires one.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
LMMS-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lmms-devel