Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv2947
Modified Files:
Menus.cpp
Log Message:
Fixed pasting mono audio to stereo track
Index: Menus.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Menus.cpp,v
retrieving revision 1.272
retrieving revision 1.273
diff -u -d -r1.272 -r1.273
--- Menus.cpp 7 Sep 2006 05:27:56 -0000 1.272
+++ Menus.cpp 13 Sep 2006 09:50:20 -0000 1.273
@@ -2556,9 +2556,28 @@
else {
((WaveTrack *) n)->Clear(t0, t1);
}
-
- n->Paste(t0, c);
+ n->Paste(t0, c);
+
+ // When copying from mono to stereo track, paste the wave form
+ // to both channels
+ if (n->GetLinked() && !c->GetLinked())
+ {
+ n = iter.Next();
+
+ if (n->GetKind() == Track::Wave) {
+ //printf("Checking to see if we need to pre-clear the track\n");
+ if (!((WaveTrack *) n)->IsEmpty(t0, t1)) {
+ ((WaveTrack *) n)->Clear(t0, t1);
+ }
+ }
+ else {
+ ((WaveTrack *) n)->Clear(t0, t1);
+ }
+
+ n->Paste(t0, c);
+ }
+
if (msClipProject != this && c->GetKind() == Track::Wave)
((WaveTrack *) c)->Unlock();
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs