Update of /cvsroot/audacity/audacity-src/src/widgets In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24661/audacity/src/widgets
Modified Files: Meter.cpp Log Message: Adjust the rms blending ratio because MixerTrackCluster sends far fewer frames per buffer. Index: Meter.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/widgets/Meter.cpp,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- Meter.cpp 13 Jul 2009 08:35:58 -0000 1.47 +++ Meter.cpp 13 Jul 2009 23:48:58 -0000 1.48 @@ -644,7 +644,12 @@ mBar[j].peak = msg.peak[j]; // This smooths out the RMS signal - mBar[j].rms = mBar[j].rms * 0.9 + msg.rms[j] * 0.1; + if (mStyle != MixerTrackCluster) + mBar[j].rms = mBar[j].rms * 0.9 + msg.rms[j] * 0.1; + else + // MixerTrackCluster needs far faster blend-in of new values, + // because far fewer frames are being seen at this call. + mBar[j].rms = (mBar[j].rms * 0.7) + (msg.rms[j] * 0.3); if (mT - mBar[j].peakHoldTime > mPeakHoldDuration || mBar[j].peak > mBar[j].peakHold) { ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs