Update of /cvsroot/audacity/audacity-src/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16156
Modified Files: Envelope.cpp Log Message: Wrap debugging with ifdef()s Index: Envelope.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/Envelope.cpp,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- Envelope.cpp 20 Nov 2009 21:18:00 -0000 1.70 +++ Envelope.cpp 23 Nov 2009 08:29:42 -0000 1.71 @@ -950,6 +950,7 @@ */ int Envelope::Insert(double when, double value) { +#if defined(__WXDEBUG__) // in debug builds, do a spot of argument checking if(when > mTrackLen) { @@ -960,9 +961,10 @@ if(when < 0) { wxString msg; - msg = wxString::Format(wxT("when %.20f mTrackLen %.20f"), when); + msg = wxString::Format(wxT("when %.20f mTrackLen %.20f"), when, mTrackLen); wxASSERT_MSG(when >= 0, msg); } +#endif int len = mEnv.Count(); @@ -1091,6 +1093,7 @@ // and that the previous tests (with epsilon==0) // were too stringent. +#if defined(__WXDEBUG__) // in debug builds, do a spot of argument checking if(t0 > (mTrackLen+mTrackEpsilon)) { @@ -1098,12 +1101,14 @@ msg = wxString::Format(wxT("t0 %.20f mTrackLen %.20f diff %.20f"), t0, mTrackLen, t0-mTrackLen); wxASSERT_MSG(t0 <= mTrackLen, msg); } + if(t0 < (-mTrackEpsilon)) { wxString msg; msg = wxString::Format(wxT("t0 %.20f"), t0); wxASSERT_MSG(t0 >= 0, msg); } +#endif for (int b = 0; b < bufferLen; b++) { ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs