Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv28214

Modified Files:
        Makefile.in WaveTrack.cpp WaveTrack.h 
Log Message:
Implement Auto Duck effect

Index: Makefile.in
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Makefile.in,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- Makefile.in 17 Jan 2007 23:48:19 -0000      1.117
+++ Makefile.in 26 Jan 2007 11:06:14 -0000      1.118
@@ -101,6 +101,7 @@
        effects/SoundTouchEffect.o \
        effects/LoadEffects.o \
        effects/Amplify.o \
+       effects/AutoDuck.o \
        effects/BassBoost.o \
        effects/ChangeLength.o \
        effects/ChangePitch.o \

Index: WaveTrack.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/WaveTrack.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- WaveTrack.h 27 Sep 2006 20:21:55 -0000      1.45
+++ WaveTrack.h 26 Jan 2007 11:06:15 -0000      1.46
@@ -220,10 +220,11 @@
    bool Lock();
    bool Unlock();
 
-   // Utility function to convert between times in seconds
+   // Utility functions to convert between times in seconds
    // and sample positions
 
    longSampleCount TimeToLongSamples(double t0);
+   double LongSamplesToTime(longSampleCount pos);
 
    // Get access to the clips in the tracks. This is used by
    // track artists and also by TrackPanel when sliding...it would

Index: WaveTrack.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/WaveTrack.cpp,v
retrieving revision 1.94
retrieving revision 1.95
diff -u -d -r1.94 -r1.95
--- WaveTrack.cpp       25 Jan 2007 03:01:11 -0000      1.94
+++ WaveTrack.cpp       26 Jan 2007 11:06:14 -0000      1.95
@@ -1102,6 +1102,11 @@
    return (longSampleCount)floor(t0 * mRate + 0.5);
 }
 
+double WaveTrack::LongSamplesToTime(longSampleCount pos)
+{
+   return ((double)pos) / mRate;
+}
+
 double WaveTrack::GetStartTime()
 {
    bool found = false;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs

Reply via email to