Update of /cvsroot/audacity/audacity-src/src/effects
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13799
Modified Files:
ChangeSpeed.cpp ChangeTempo.cpp
Log Message:
Fixes for 'Timeline changing effects do not modify the selection region
appropriately'
Index: ChangeSpeed.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangeSpeed.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- ChangeSpeed.cpp 17 Oct 2008 04:58:52 -0000 1.53
+++ ChangeSpeed.cpp 14 Nov 2008 00:28:36 -0000 1.54
@@ -152,7 +152,7 @@
}
#endif
-// mT1 = mT0 + m_maxNewLength; // Update selection.
+ mT1 = mT0 + m_maxNewLength; // Update selection.
return bGoodResult;
}
Index: ChangeTempo.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ChangeTempo.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- ChangeTempo.cpp 7 Jul 2008 17:36:42 -0000 1.42
+++ ChangeTempo.cpp 14 Nov 2008 00:28:36 -0000 1.43
@@ -104,7 +104,10 @@
{
mSoundTouch = new SoundTouch();
mSoundTouch->setTempoChange(m_PercentChange);
- return this->EffectSoundTouch::Process();
+ bool success = this->EffectSoundTouch::Process();
+ if( success )
+ mT1 = mT0 + (mT1 - mT0)/(m_PercentChange/100 + 1.);
+ return success;
}
//----------------------------------------------------------------------------
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs