Update of /cvsroot/audacity/audacity-src/src
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv22623/src
Modified Files:
AudioIO.cpp Experimental.h
Log Message:
Making PauseRecOnSilence into 'Experimental'.
Index: AudioIO.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/AudioIO.cpp,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- AudioIO.cpp 24 Jun 2007 23:19:13 -0000 1.162
+++ AudioIO.cpp 5 Jul 2007 00:49:50 -0000 1.163
@@ -67,6 +67,7 @@
#include "toolbars/ControlToolBar.h"
#include "widgets/Meter.h"
+#include "../Experimental.h"
#define NO_STABLE_INDICATOR -1000000000
@@ -861,10 +862,13 @@
#endif
gPrefs->Read(wxT("/AudioIO/SWPlaythrough"), &mSoftwarePlaythrough, false);
+
+#ifdef EXPERIMENTAL_SMART_RECORD
gPrefs->Read(wxT("/AudioIO/PauseRecOnSilence"), &mPauseRec, false);
int silenceLevelDB;
- gPrefs->Read(wxT("/AudioIO/SilenceLevel"), &silenceLevelDB, -30);
+ gPrefs->Read(wxT("/AudioIO/SilenceLevel"), &silenceLevelDB, -50);
mSilenceLevel = (silenceLevelDB + 60.)/60.; // meter goes -60dB -> 0dB
+#endif
mTimeTrack = timeTrack;
mListener = listener;
@@ -1880,6 +1884,7 @@
}
gAudioIO->mUpdatingMeters = false;
+#ifdef EXPERIMENTAL_SMART_RECORD
// Stop recording if 'silence' is detected
if(gAudioIO->mPauseRec && inputBuffer) {
if(gAudioIO->mInputMeter->GetMaxPeak() < gAudioIO->mSilenceLevel ) {
@@ -1897,7 +1902,7 @@
}
}
}
-
+#endif
if( gAudioIO->mPaused )
{
if (outputBuffer && numPlaybackChannels > 0)
Index: Experimental.h
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/Experimental.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Experimental.h 4 Jul 2007 10:16:40 -0000 1.9
+++ Experimental.h 5 Jul 2007 00:49:50 -0000 1.10
@@ -39,6 +39,7 @@
//#define RIGHT_ALIGNED_TEXTBOXES
//#define EXPERIMENTAL_VOICE_DETECTION
+//#define EXPERIMENTAL_SMART_RECORD
#ifdef EXPERIMENTAL_FEATURES
// The first experimental feature is a notebook that adds
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs