Update of /cvsroot/audacity/audacity-src/src In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv4767
Modified Files: WaveClip.cpp WaveTrack.cpp WaveTrack.h Log Message: Changing several int/long types to sampleCounts in OD Index: WaveTrack.h =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/WaveTrack.h,v retrieving revision 1.58 retrieving revision 1.59 diff -u -d -r1.58 -r1.59 --- WaveTrack.h 13 Jul 2008 22:58:08 -0000 1.58 +++ WaveTrack.h 17 Jul 2008 20:18:12 -0000 1.59 @@ -170,7 +170,7 @@ void DeleteWaveCaches(); ///Adds an invalid region to the wavecache so it redraws that portion only. - void AddInvalidRegion(long startSample, long endSample); + void AddInvalidRegion(sampleCount startSample, sampleCount endSample); /// /// MM: Now that each wave track can contain multiple clips, we don't Index: WaveTrack.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/WaveTrack.cpp,v retrieving revision 1.127 retrieving revision 1.128 diff -u -d -r1.127 -r1.128 --- WaveTrack.cpp 12 Jul 2008 15:25:40 -0000 1.127 +++ WaveTrack.cpp 17 Jul 2008 20:18:12 -0000 1.128 @@ -2146,7 +2146,7 @@ } ///Adds an invalid region to the wavecache so it redraws that portion only. -void WaveTrack::AddInvalidRegion(long startSample, long endSample) +void WaveTrack::AddInvalidRegion(sampleCount startSample, sampleCount endSample) { for (WaveClipList::Node* it=GetClipIterator(); it; it=it->GetNext()) it->GetData()->AddInvalidRegion(startSample,endSample); Index: WaveClip.cpp =================================================================== RCS file: /cvsroot/audacity/audacity-src/src/WaveClip.cpp,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- WaveClip.cpp 16 Jul 2008 21:02:47 -0000 1.42 +++ WaveClip.cpp 17 Jul 2008 20:18:12 -0000 1.43 @@ -82,13 +82,14 @@ { public: InvalidRegion(int s, int e):start(s),end(e){} - int start; + //start and end pixel count. (not samples) + int start; int end; }; //Thread safe call to add a new region to invalidate. If it overlaps with other regions, it unions the them. - void AddInvalidRegion(long sampleStart, long sampleEnd) + void AddInvalidRegion(sampleCount sampleStart, sampleCount sampleEnd) { //use pps to figure out where we are. (pixels per second) if(pps ==0) ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Audacity-cvs mailing list Audacity-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audacity-cvs