mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-26 00:58:37 +02:00
Experimental.h safety
This commit is contained in:
commit
dd95f735c6
@ -44,6 +44,7 @@ from there. Audacity will look for a file called "Pause.png".
|
|||||||
// Note: No '#ifndef/#define' pair on this header file.
|
// Note: No '#ifndef/#define' pair on this header file.
|
||||||
// we want to include it multiple times in Theme.cpp.
|
// we want to include it multiple times in Theme.cpp.
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
#include "MacroMagic.h"
|
#include "MacroMagic.h"
|
||||||
#define XPMS_RETIRED
|
#define XPMS_RETIRED
|
||||||
|
|
||||||
|
@ -101,6 +101,8 @@ It handles initialization and termination by subclassing wxApp.
|
|||||||
|
|
||||||
#include "import/Import.h"
|
#include "import/Import.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#if defined(EXPERIMENTAL_CRASH_REPORT)
|
#if defined(EXPERIMENTAL_CRASH_REPORT)
|
||||||
#include <wx/debugrpt.h>
|
#include <wx/debugrpt.h>
|
||||||
#include <wx/evtloop.h>
|
#include <wx/evtloop.h>
|
||||||
|
@ -26,6 +26,7 @@ Provides thread-safe logging based on the wxWidgets log facility.
|
|||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
|
|
||||||
#include "../images/AudacityLogoAlpha.xpm"
|
#include "../images/AudacityLogoAlpha.xpm"
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// AudacityLogger class
|
// AudacityLogger class
|
||||||
|
@ -318,7 +318,7 @@ writing audio.
|
|||||||
#include "NoteTrack.h"
|
#include "NoteTrack.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
#define LOWER_BOUND 0.0
|
#define LOWER_BOUND 0.0
|
||||||
#define UPPER_BOUND 1.0
|
#define UPPER_BOUND 1.0
|
||||||
#endif
|
#endif
|
||||||
@ -876,7 +876,7 @@ AudioIO::AudioIO()
|
|||||||
mNumPauseFrames = 0;
|
mNumPauseFrames = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
mAILAActive = false;
|
mAILAActive = false;
|
||||||
#endif
|
#endif
|
||||||
mSilentBuf = NULL;
|
mSilentBuf = NULL;
|
||||||
@ -1811,7 +1811,7 @@ int AudioIO::StartStream(WaveTrackArray playbackTracks,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
AILASetStartTime();
|
AILASetStartTime();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3769,7 +3769,7 @@ void AudioIO::AllNotesOff()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Automated Input Level Adjustment - Automatically tries to find an acceptable input volume
|
// Automated Input Level Adjustment - Automatically tries to find an acceptable input volume
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
void AudioIO::AILAInitialize() {
|
void AudioIO::AILAInitialize() {
|
||||||
gPrefs->Read(wxT("/AudioIO/AutomatedInputLevelAdjustment"), &mAILAActive, false);
|
gPrefs->Read(wxT("/AudioIO/AutomatedInputLevelAdjustment"), &mAILAActive, false);
|
||||||
gPrefs->Read(wxT("/AudioIO/TargetPeak"), &mAILAGoalPoint, AILA_DEF_TARGET_PEAK);
|
gPrefs->Read(wxT("/AudioIO/TargetPeak"), &mAILAGoalPoint, AILA_DEF_TARGET_PEAK);
|
||||||
|
@ -67,7 +67,7 @@ class AudioIOListener;
|
|||||||
#define DEFAULT_LATENCY_DURATION 100.0
|
#define DEFAULT_LATENCY_DURATION 100.0
|
||||||
#define DEFAULT_LATENCY_CORRECTION -130.0
|
#define DEFAULT_LATENCY_CORRECTION -130.0
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
#define AILA_DEF_TARGET_PEAK 92
|
#define AILA_DEF_TARGET_PEAK 92
|
||||||
#define AILA_DEF_DELTA_PEAK 2
|
#define AILA_DEF_DELTA_PEAK 2
|
||||||
#define AILA_DEF_ANALYSIS_TIME 1000
|
#define AILA_DEF_ANALYSIS_TIME 1000
|
||||||
@ -393,7 +393,7 @@ class AUDACITY_DLL_API AudioIO {
|
|||||||
/** \brief Function to automatically set an acceptable volume
|
/** \brief Function to automatically set an acceptable volume
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
void AILAInitialize();
|
void AILAInitialize();
|
||||||
void AILADisable();
|
void AILADisable();
|
||||||
bool AILAIsActive();
|
bool AILAIsActive();
|
||||||
@ -551,7 +551,7 @@ private:
|
|||||||
NoteTrackArray mMidiPlaybackTracks;
|
NoteTrackArray mMidiPlaybackTracks;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
bool mAILAActive;
|
bool mAILAActive;
|
||||||
bool mAILAClipped;
|
bool mAILAClipped;
|
||||||
int mAILATotalAnalysis;
|
int mAILATotalAnalysis;
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
#include "DeviceChange.h"
|
#include "DeviceChange.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
|
#if defined(EXPERIMENTAL_DEVICE_CHANGE_HANDLER)
|
||||||
|
|
||||||
#if defined(HAVE_DEVICE_CHANGE)
|
#if defined(HAVE_DEVICE_CHANGE)
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include "DeviceManager.h"
|
#include "DeviceManager.h"
|
||||||
#include "toolbars/DeviceToolBar.h"
|
#include "toolbars/DeviceToolBar.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
DeviceManager DeviceManager::dm;
|
DeviceManager DeviceManager::dm;
|
||||||
|
|
||||||
/// Gets the singleton instance
|
/// Gets the singleton instance
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#ifndef __AUDACITY_DEVICEMANAGER__
|
#ifndef __AUDACITY_DEVICEMANAGER__
|
||||||
#define __AUDACITY_DEVICEMANAGER__
|
#define __AUDACITY_DEVICEMANAGER__
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ count down so that we track how many times the event happens.
|
|||||||
|
|
||||||
#include <wx/stopwatch.h>
|
#include <wx/stopwatch.h>
|
||||||
#include "Diags.h"
|
#include "Diags.h"
|
||||||
#include "Experimental.h"
|
|
||||||
|
|
||||||
static wxStopWatch MasterWatch;
|
static wxStopWatch MasterWatch;
|
||||||
static bool bStopWatchStarted = false;
|
static bool bStopWatchStarted = false;
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
//#define EXPERIMENTAL_EXTRA_MONITORING
|
//#define EXPERIMENTAL_EXTRA_MONITORING
|
||||||
|
|
||||||
//#define EXPERIMENTAL_ROLL_UP_DIALOG
|
//#define EXPERIMENTAL_ROLL_UP_DIALOG
|
||||||
//#define RIGHT_ALIGNED_TEXTBOXES
|
//#define EXPERIMENTAL_RIGHT_ALIGNED_TEXTBOXES
|
||||||
//#define EXPERIMENTAL_VOICE_DETECTION
|
//#define EXPERIMENTAL_VOICE_DETECTION
|
||||||
|
|
||||||
// Effect categorisation. Adds support for arranging effects in categories
|
// Effect categorisation. Adds support for arranging effects in categories
|
||||||
@ -74,8 +74,6 @@
|
|||||||
// it should have an easy mechanism to disable it at run-time, such as a menu item or a pref,
|
// it should have an easy mechanism to disable it at run-time, such as a menu item or a pref,
|
||||||
// preferrably disabled until other work is done. Martyn 22/12/2008.
|
// preferrably disabled until other work is done. Martyn 22/12/2008.
|
||||||
//
|
//
|
||||||
// All code removed after 2.1.0 release since it was unmaintained. LLL
|
|
||||||
//#define EFFECT_CATEGORIES
|
|
||||||
|
|
||||||
// JKC Apr 2015, Menu item to manage effects.
|
// JKC Apr 2015, Menu item to manage effects.
|
||||||
#define EXPERIMENTAL_EFFECT_MANAGEMENT
|
#define EXPERIMENTAL_EFFECT_MANAGEMENT
|
||||||
@ -139,7 +137,7 @@
|
|||||||
|
|
||||||
#if USE_PORTMIXER
|
#if USE_PORTMIXER
|
||||||
//Automatically tries to find an acceptable input volume
|
//Automatically tries to find an acceptable input volume
|
||||||
//#define AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
//#define EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// John (Thales) work to make the display show the result of the pan and gain sliders, rather than their input.
|
// John (Thales) work to make the display show the result of the pan and gain sliders, rather than their input.
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
static int **gFFTBitTable = NULL;
|
static int **gFFTBitTable = NULL;
|
||||||
static const int MaxFastBits = 16;
|
static const int MaxFastBits = 16;
|
||||||
|
|
||||||
|
@ -26,6 +26,8 @@ License: GPL v2. See License.txt.
|
|||||||
|
|
||||||
#include <wx/file.h>
|
#include <wx/file.h>
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#if !defined(USE_FFMPEG)
|
#if !defined(USE_FFMPEG)
|
||||||
/// FFmpeg support may or may not be compiled in,
|
/// FFmpeg support may or may not be compiled in,
|
||||||
/// but Preferences dialog requires this function nevertheless
|
/// but Preferences dialog requires this function nevertheless
|
||||||
|
@ -80,6 +80,8 @@ and in the spectrogram spectral selection.
|
|||||||
|
|
||||||
#include "WaveTrack.h"
|
#include "WaveTrack.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
DEFINE_EVENT_TYPE(EVT_FREQWINDOW_RECALC);
|
DEFINE_EVENT_TYPE(EVT_FREQWINDOW_RECALC);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
@ -9,8 +9,6 @@
|
|||||||
|
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#include "Experimental.h"
|
|
||||||
|
|
||||||
#include "LyricsWindow.h"
|
#include "LyricsWindow.h"
|
||||||
#include "Lyrics.h"
|
#include "Lyrics.h"
|
||||||
#include "AudioIO.h"
|
#include "AudioIO.h"
|
||||||
|
@ -820,7 +820,7 @@ void AudacityProject::CreateMenusAndCommands()
|
|||||||
c->AddCheck(wxT("SoundActivation"), _("Sound A&ctivated Recording (on/off)"), FN(OnToggleSoundActivated), 0);
|
c->AddCheck(wxT("SoundActivation"), _("Sound A&ctivated Recording (on/off)"), FN(OnToggleSoundActivated), 0);
|
||||||
c->AddItem(wxT("SoundActivationLevel"), _("Sound Activation Le&vel..."), FN(OnSoundActivated));
|
c->AddItem(wxT("SoundActivationLevel"), _("Sound Activation Le&vel..."), FN(OnSoundActivated));
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
c->AddCheck(wxT("AutomatedInputLevelAdjustmentOnOff"), _("A&utomated Recording Level Adjustment (on/off)"), FN(OnToogleAutomatedInputLevelAdjustment), 0);
|
c->AddCheck(wxT("AutomatedInputLevelAdjustmentOnOff"), _("A&utomated Recording Level Adjustment (on/off)"), FN(OnToogleAutomatedInputLevelAdjustment), 0);
|
||||||
#endif
|
#endif
|
||||||
c->AddItem(wxT("RescanDevices"), _("R&escan Audio Devices"), FN(OnRescanDevices));
|
c->AddItem(wxT("RescanDevices"), _("R&escan Audio Devices"), FN(OnRescanDevices));
|
||||||
@ -1847,7 +1847,7 @@ void AudacityProject::ModifyToolbarMenus()
|
|||||||
bool active;
|
bool active;
|
||||||
gPrefs->Read(wxT("/AudioIO/SoundActivatedRecord"),&active, false);
|
gPrefs->Read(wxT("/AudioIO/SoundActivatedRecord"),&active, false);
|
||||||
mCommandManager.Check(wxT("SoundActivation"), active);
|
mCommandManager.Check(wxT("SoundActivation"), active);
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
gPrefs->Read(wxT("/AudioIO/AutomatedInputLevelAdjustment"),&active, false);
|
gPrefs->Read(wxT("/AudioIO/AutomatedInputLevelAdjustment"),&active, false);
|
||||||
mCommandManager.Check(wxT("AutomatedInputLevelAdjustmentOnOff"), active);
|
mCommandManager.Check(wxT("AutomatedInputLevelAdjustmentOnOff"), active);
|
||||||
#endif
|
#endif
|
||||||
@ -2363,7 +2363,7 @@ void AudacityProject::OnToggleSWPlaythrough()
|
|||||||
ModifyAllProjectToolbarMenus();
|
ModifyAllProjectToolbarMenus();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
void AudacityProject::OnToogleAutomatedInputLevelAdjustment()
|
void AudacityProject::OnToogleAutomatedInputLevelAdjustment()
|
||||||
{
|
{
|
||||||
bool AVEnabled;
|
bool AVEnabled;
|
||||||
|
@ -308,7 +308,7 @@ void OnSoundActivated();
|
|||||||
void OnToggleSoundActivated();
|
void OnToggleSoundActivated();
|
||||||
void OnTogglePlayRecording();
|
void OnTogglePlayRecording();
|
||||||
void OnToggleSWPlaythrough();
|
void OnToggleSWPlaythrough();
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
void OnToogleAutomatedInputLevelAdjustment();
|
void OnToogleAutomatedInputLevelAdjustment();
|
||||||
#endif
|
#endif
|
||||||
void OnRescanDevices();
|
void OnRescanDevices();
|
||||||
|
@ -47,6 +47,8 @@ i.e. an alternative to the usual interface, for Audacity.
|
|||||||
|
|
||||||
#include <wx/arrimpl.cpp>
|
#include <wx/arrimpl.cpp>
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#define initFnName "ExtensionModuleInit"
|
#define initFnName "ExtensionModuleInit"
|
||||||
#define versionFnName "GetVersionString"
|
#define versionFnName "GetVersionString"
|
||||||
#define scriptFnName "RegScriptServerFunc"
|
#define scriptFnName "RegScriptServerFunc"
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include "Prefs.h"
|
#include "Prefs.h"
|
||||||
#include "effects/TimeWarper.h"
|
#include "effects/TimeWarper.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#ifdef SONIFY
|
#ifdef SONIFY
|
||||||
#include "portmidi.h"
|
#include "portmidi.h"
|
||||||
|
|
||||||
|
@ -48,6 +48,8 @@
|
|||||||
|
|
||||||
#include <wx/arrimpl.cpp>
|
#include <wx/arrimpl.cpp>
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
WX_DECLARE_STRING_HASH_MAP(wxArrayString, ProviderMap);
|
WX_DECLARE_STRING_HASH_MAP(wxArrayString, ProviderMap);
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include "WaveTrack.h"
|
#include "WaveTrack.h"
|
||||||
#include "widgets/Ruler.h"
|
#include "widgets/Ruler.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
// Globals, so that we remember settings from session to session
|
// Globals, so that we remember settings from session to session
|
||||||
static wxPrintData *gPrintData = NULL;
|
static wxPrintData *gPrintData = NULL;
|
||||||
static wxPageSetupData *gPageSetupData = NULL;
|
static wxPageSetupData *gPageSetupData = NULL;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef __realfftf_h
|
#ifndef __realfftf_h
|
||||||
#define __realfftf_h
|
#define __realfftf_h
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#define fft_type float
|
#define fft_type float
|
||||||
struct FFTParam {
|
struct FFTParam {
|
||||||
int *BitReversed;
|
int *BitReversed;
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
*//*******************************************************************/
|
*//*******************************************************************/
|
||||||
|
|
||||||
#include "Resample.h"
|
#include "Resample.h"
|
||||||
|
#include "Prefs.h"
|
||||||
|
|
||||||
#include <soxr.h>
|
#include <soxr.h>
|
||||||
|
|
||||||
@ -100,3 +101,11 @@ int Resample::Process(double factor,
|
|||||||
*inBufferUsed = (int)idone;
|
*inBufferUsed = (int)idone;
|
||||||
return (int)odone;
|
return (int)odone;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Resample::SetMethod(const bool useBestMethod)
|
||||||
|
{
|
||||||
|
if (useBestMethod)
|
||||||
|
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
|
||||||
|
else
|
||||||
|
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
|
||||||
|
}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
|
|
||||||
#include "Prefs.h"
|
|
||||||
#include "SampleFormat.h"
|
#include "SampleFormat.h"
|
||||||
|
|
||||||
class Resample
|
class Resample
|
||||||
@ -75,13 +74,7 @@ class Resample
|
|||||||
int outBufferLen);
|
int outBufferLen);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void SetMethod(const bool useBestMethod)
|
void SetMethod(const bool useBestMethod);
|
||||||
{
|
|
||||||
if (useBestMethod)
|
|
||||||
mMethod = gPrefs->Read(GetBestMethodKey(), GetBestMethodDefault());
|
|
||||||
else
|
|
||||||
mMethod = gPrefs->Read(GetFastMethodKey(), GetFastMethodDefault());
|
|
||||||
};
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int mMethod; // resampler-specific enum for resampling method
|
int mMethod; // resampler-specific enum for resampling method
|
||||||
|
@ -12,6 +12,7 @@ Paul Licameli
|
|||||||
#include "SelectedRegion.h"
|
#include "SelectedRegion.h"
|
||||||
#include "xml/XMLWriter.h"
|
#include "xml/XMLWriter.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
const wxChar *SelectedRegion::sDefaultT0Name = wxT("selStart");
|
const wxChar *SelectedRegion::sDefaultT0Name = wxT("selStart");
|
||||||
const wxChar *SelectedRegion::sDefaultT1Name = wxT("selEnd");
|
const wxChar *SelectedRegion::sDefaultT1Name = wxT("selEnd");
|
||||||
|
|
||||||
|
@ -502,7 +502,7 @@ wxTextCtrl * ShuttleGuiBase::AddTextBox(const wxString &Caption, const wxString
|
|||||||
AddPrompt( Caption );
|
AddPrompt( Caption );
|
||||||
miProp=0;
|
miProp=0;
|
||||||
|
|
||||||
#ifdef RIGHT_ALIGNED_TEXTBOXES
|
#ifdef EXPERIMENTAL_RIGHT_ALIGNED_TEXTBOXES
|
||||||
long flags = wxTE_RIGHT;
|
long flags = wxTE_RIGHT;
|
||||||
#else
|
#else
|
||||||
long flags = wxTE_LEFT;
|
long flags = wxTE_LEFT;
|
||||||
@ -529,7 +529,7 @@ wxTextCtrl * ShuttleGuiBase::AddNumericTextBox(const wxString &Caption, const wx
|
|||||||
AddPrompt( Caption );
|
AddPrompt( Caption );
|
||||||
miProp=0;
|
miProp=0;
|
||||||
|
|
||||||
#ifdef RIGHT_ALIGNED_TEXTBOXES
|
#ifdef EXPERIMENTAL_RIGHT_ALIGNED_TEXTBOXES
|
||||||
long flags = wxTE_RIGHT;
|
long flags = wxTE_RIGHT;
|
||||||
#else
|
#else
|
||||||
long flags = wxTE_LEFT;
|
long flags = wxTE_LEFT;
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#include "Spectrum.h"
|
#include "Spectrum.h"
|
||||||
#include "FFT.h"
|
#include "FFT.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
bool ComputeSpectrum(const float * data, int width,
|
bool ComputeSpectrum(const float * data, int width,
|
||||||
int windowSize,
|
int windowSize,
|
||||||
double WXUNUSED(rate), float *output,
|
double WXUNUSED(rate), float *output,
|
||||||
|
@ -26,6 +26,8 @@ and TimeTrack.
|
|||||||
#include "Project.h"
|
#include "Project.h"
|
||||||
#include "DirManager.h"
|
#include "DirManager.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
//Disable truncation warnings
|
//Disable truncation warnings
|
||||||
#pragma warning( disable : 4786 )
|
#pragma warning( disable : 4786 )
|
||||||
|
@ -183,6 +183,8 @@ audio tracks.
|
|||||||
#include "Theme.h"
|
#include "Theme.h"
|
||||||
#include "AllThemeResources.h"
|
#include "AllThemeResources.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
#undef PROFILE_WAVEFORM
|
#undef PROFILE_WAVEFORM
|
||||||
#ifdef PROFILE_WAVEFORM
|
#ifdef PROFILE_WAVEFORM
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
|
@ -38,6 +38,9 @@
|
|||||||
#include "prefs/SpectrogramSettings.h"
|
#include "prefs/SpectrogramSettings.h"
|
||||||
|
|
||||||
#include <wx/listimpl.cpp>
|
#include <wx/listimpl.cpp>
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
WX_DEFINE_LIST(WaveClipList);
|
WX_DEFINE_LIST(WaveClipList);
|
||||||
|
|
||||||
class WaveCache {
|
class WaveCache {
|
||||||
|
@ -55,6 +55,8 @@ Track classes.
|
|||||||
#include "prefs/SpectrumPrefs.h"
|
#include "prefs/SpectrumPrefs.h"
|
||||||
#include "prefs/WaveformPrefs.h"
|
#include "prefs/WaveformPrefs.h"
|
||||||
|
|
||||||
|
#include "Experimental.h"
|
||||||
|
|
||||||
using std::max;
|
using std::max;
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY
|
#ifdef EXPERIMENTAL_OUTPUT_DISPLAY
|
||||||
|
@ -115,6 +115,8 @@ CommandManager. It holds the callback for one command.
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
// Shared by all projects
|
// Shared by all projects
|
||||||
static class CommandManagerEventMonitor : public wxEventFilter
|
static class CommandManagerEventMonitor : public wxEventFilter
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
#ifndef __AUDACITY_COMMAND_MANAGER__
|
#ifndef __AUDACITY_COMMAND_MANAGER__
|
||||||
#define __AUDACITY_COMMAND_MANAGER__
|
#define __AUDACITY_COMMAND_MANAGER__
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/dynarray.h>
|
#include <wx/dynarray.h>
|
||||||
#include <wx/menu.h>
|
#include <wx/menu.h>
|
||||||
|
@ -54,6 +54,8 @@ greater use in future.
|
|||||||
#include <Cocoa/Cocoa.h>
|
#include <Cocoa/Cocoa.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
static const int kDummyID = 20000;
|
static const int kDummyID = 20000;
|
||||||
static const int kSaveAsID = 20001;
|
static const int kSaveAsID = 20001;
|
||||||
static const int kImportID = 20002;
|
static const int kImportID = 20002;
|
||||||
|
@ -21,6 +21,8 @@ effects.
|
|||||||
#ifndef __AUDACITY_EFFECTMANAGER__
|
#ifndef __AUDACITY_EFFECTMANAGER__
|
||||||
#define __AUDACITY_EFFECTMANAGER__
|
#define __AUDACITY_EFFECTMANAGER__
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#include <wx/choice.h>
|
#include <wx/choice.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
#include <wx/event.h>
|
#include <wx/event.h>
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#define NUM_PTS 180
|
#define NUM_PTS 180
|
||||||
#define PANELBORDER 1 // only increase from '1' for testing purposes - MJS
|
#define PANELBORDER 1 // only increase from '1' for testing purposes - MJS
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/panel.h>
|
#include <wx/panel.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
@ -57,6 +57,8 @@
|
|||||||
#include "ChangeTempo.h"
|
#include "ChangeTempo.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Include the SoundTouch effects, if requested
|
// Include the SoundTouch effects, if requested
|
||||||
//
|
//
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
|
|
||||||
#include "../Audacity.h"
|
#include "../Audacity.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#if !defined(EXPERIMENTAL_NOISE_REDUCTION)
|
#if !defined(EXPERIMENTAL_NOISE_REDUCTION)
|
||||||
|
|
||||||
#include "Effect.h"
|
#include "Effect.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include "../ShuttleGui.h"
|
#include "../ShuttleGui.h"
|
||||||
#include "../widgets/valnum.h"
|
#include "../widgets/valnum.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include "../ShuttleGui.h"
|
#include "../ShuttleGui.h"
|
||||||
#include "../widgets/valnum.h"
|
#include "../widgets/valnum.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ID_Freq = 10000,
|
ID_Freq = 10000,
|
||||||
|
@ -68,6 +68,8 @@ effects from this one class.
|
|||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
|
#include "../../Experimental.h"
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ID_Editor = 10000,
|
ID_Editor = 10000,
|
||||||
|
@ -31,6 +31,8 @@ Licensed under the GNU General Public License v2 or later
|
|||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
|
|
||||||
#define DESC _("FFmpeg-compatible files")
|
#define DESC _("FFmpeg-compatible files")
|
||||||
|
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
|
|
||||||
#include "../Tags.h"
|
#include "../Tags.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#define FLAC_HEADER "fLaC"
|
#define FLAC_HEADER "fLaC"
|
||||||
|
|
||||||
#define DESC _("FLAC files")
|
#define DESC _("FLAC files")
|
||||||
@ -94,8 +96,6 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
//#define EXPERIMENTAL_OD_FLAC
|
|
||||||
|
|
||||||
class FLACImportFileHandle;
|
class FLACImportFileHandle;
|
||||||
|
|
||||||
class MyFLACFile : public FLAC::Decoder::File
|
class MyFLACFile : public FLAC::Decoder::File
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
#include "EffectsPrefs.h"
|
#include "EffectsPrefs.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
EffectsPrefs::EffectsPrefs(wxWindow * parent)
|
EffectsPrefs::EffectsPrefs(wxWindow * parent)
|
||||||
: PrefsPanel(parent, _("Effects"))
|
: PrefsPanel(parent, _("Effects"))
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
#include "GUISettings.h"
|
#include "GUISettings.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
GUIPrefs::GUIPrefs(wxWindow * parent)
|
GUIPrefs::GUIPrefs(wxWindow * parent)
|
||||||
: PrefsPanel(parent, _("Interface"))
|
: PrefsPanel(parent, _("Interface"))
|
||||||
{
|
{
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
#ifndef __AUDACITY_KEY_CONFIG_PREFS__
|
#ifndef __AUDACITY_KEY_CONFIG_PREFS__
|
||||||
#define __AUDACITY_KEY_CONFIG_PREFS__
|
#define __AUDACITY_KEY_CONFIG_PREFS__
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
class ShuttleGui;
|
class ShuttleGui;
|
||||||
|
|
||||||
#if defined(EXPERIMENTAL_KEY_VIEW)
|
#if defined(EXPERIMENTAL_KEY_VIEW)
|
||||||
|
@ -29,6 +29,8 @@ MP3 and FFmpeg encoding libraries.
|
|||||||
|
|
||||||
#include "LibraryPrefs.h"
|
#include "LibraryPrefs.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#define ID_MP3_FIND_BUTTON 7001
|
#define ID_MP3_FIND_BUTTON 7001
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
#include "../Prefs.h"
|
#include "../Prefs.h"
|
||||||
#include "../ShuttleGui.h"
|
#include "../ShuttleGui.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
using std::min;
|
using std::min;
|
||||||
|
|
||||||
RecordingPrefs::RecordingPrefs(wxWindow * parent)
|
RecordingPrefs::RecordingPrefs(wxWindow * parent)
|
||||||
@ -123,7 +125,7 @@ void RecordingPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
}
|
}
|
||||||
S.EndStatic();
|
S.EndStatic();
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
S.StartStatic(_("Automated Recording Level Adjustment"));
|
S.StartStatic(_("Automated Recording Level Adjustment"));
|
||||||
{
|
{
|
||||||
S.TieCheckBox(_("Enable Automated Recording Level Adjustment."),
|
S.TieCheckBox(_("Enable Automated Recording Level Adjustment."),
|
||||||
@ -180,7 +182,7 @@ bool RecordingPrefs::Apply()
|
|||||||
gPrefs->Write(wxT("/AudioIO/LatencyDuration"), DEFAULT_LATENCY_DURATION);
|
gPrefs->Write(wxT("/AudioIO/LatencyDuration"), DEFAULT_LATENCY_DURATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
double targetpeak, deltapeak;
|
double targetpeak, deltapeak;
|
||||||
gPrefs->Read(wxT("/AudioIO/TargetPeak"), &targetpeak);
|
gPrefs->Read(wxT("/AudioIO/TargetPeak"), &targetpeak);
|
||||||
gPrefs->Read(wxT("/AudioIO/DeltaPeakVolume"), &deltapeak);
|
gPrefs->Read(wxT("/AudioIO/DeltaPeakVolume"), &deltapeak);
|
||||||
|
@ -27,6 +27,8 @@ Paul Licameli
|
|||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
SpectrogramSettings::Globals::Globals()
|
SpectrogramSettings::Globals::Globals()
|
||||||
{
|
{
|
||||||
LoadPrefs();
|
LoadPrefs();
|
||||||
|
@ -30,6 +30,8 @@
|
|||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
SpectrumPrefs::SpectrumPrefs(wxWindow * parent, WaveTrack *wt)
|
SpectrumPrefs::SpectrumPrefs(wxWindow * parent, WaveTrack *wt)
|
||||||
: PrefsPanel(parent, wt ? _("Spectrogram Settings") : _("Spectrograms"))
|
: PrefsPanel(parent, wt ? _("Spectrogram Settings") : _("Spectrograms"))
|
||||||
, mWt(wt)
|
, mWt(wt)
|
||||||
|
@ -28,6 +28,8 @@
|
|||||||
#include "../ShuttleGui.h"
|
#include "../ShuttleGui.h"
|
||||||
#include "../WaveTrack.h"
|
#include "../WaveTrack.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
TracksPrefs::TracksPrefs(wxWindow * parent)
|
TracksPrefs::TracksPrefs(wxWindow * parent)
|
||||||
|
@ -746,7 +746,7 @@ void ControlToolBar::StopPlaying(bool stopStream /* = true*/)
|
|||||||
SetPlay(false);
|
SetPlay(false);
|
||||||
SetRecord(false);
|
SetRecord(false);
|
||||||
|
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
gAudioIO->AILADisable();
|
gAudioIO->AILADisable();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -929,7 +929,7 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Automated Input Level Adjustment Initialization
|
//Automated Input Level Adjustment Initialization
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
gAudioIO->AILAInitialize();
|
gAudioIO->AILAInitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
#include "../UndoManager.h"
|
#include "../UndoManager.h"
|
||||||
#include "../widgets/AButton.h"
|
#include "../widgets/AButton.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
IMPLEMENT_CLASS(EditToolBar, ToolBar);
|
IMPLEMENT_CLASS(EditToolBar, ToolBar);
|
||||||
|
|
||||||
const int BUTTON_WIDTH = 27;
|
const int BUTTON_WIDTH = 27;
|
||||||
|
@ -55,6 +55,8 @@ with changes in the SpectralSelectionBar.
|
|||||||
#include "../SelectedRegion.h"
|
#include "../SelectedRegion.h"
|
||||||
#include "../widgets/NumericTextCtrl.h"
|
#include "../widgets/NumericTextCtrl.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
|
||||||
|
|
||||||
IMPLEMENT_CLASS(SpectralSelectionBar, ToolBar);
|
IMPLEMENT_CLASS(SpectralSelectionBar, ToolBar);
|
||||||
|
@ -68,6 +68,8 @@
|
|||||||
#include "../widgets/AButton.h"
|
#include "../widgets/AButton.h"
|
||||||
#include "../widgets/Grabber.h"
|
#include "../widgets/Grabber.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Methods for ToolFrame
|
/// Methods for ToolFrame
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -58,6 +58,8 @@
|
|||||||
#include "../Theme.h"
|
#include "../Theme.h"
|
||||||
#include "../widgets/AButton.h"
|
#include "../widgets/AButton.h"
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
IMPLEMENT_CLASS(ToolsToolBar, ToolBar);
|
IMPLEMENT_CLASS(ToolsToolBar, ToolBar);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#define __AUDACITY_TRANSCRIPTION_TOOLBAR__
|
#define __AUDACITY_TRANSCRIPTION_TOOLBAR__
|
||||||
|
|
||||||
#include "ToolBar.h"
|
#include "ToolBar.h"
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#include <wx/brush.h>
|
#include <wx/brush.h>
|
||||||
#include <wx/pen.h>
|
#include <wx/pen.h>
|
||||||
|
@ -13,6 +13,8 @@
|
|||||||
#ifndef __AUDACITY_SLIDER__
|
#ifndef __AUDACITY_SLIDER__
|
||||||
#define __AUDACITY_SLIDER__
|
#define __AUDACITY_SLIDER__
|
||||||
|
|
||||||
|
#include "../Experimental.h"
|
||||||
|
|
||||||
#include <wx/defs.h>
|
#include <wx/defs.h>
|
||||||
#include <wx/window.h>
|
#include <wx/window.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
@ -959,7 +959,7 @@ void Meter::OnMeterUpdate(wxTimerEvent & WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
MeterUpdateMsg msg;
|
MeterUpdateMsg msg;
|
||||||
int numChanges = 0;
|
int numChanges = 0;
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
double maxPeak = 0.0;
|
double maxPeak = 0.0;
|
||||||
bool discarded = false;
|
bool discarded = false;
|
||||||
#endif
|
#endif
|
||||||
@ -1027,7 +1027,7 @@ void Meter::OnMeterUpdate(wxTimerEvent & WXUNUSED(event))
|
|||||||
}
|
}
|
||||||
|
|
||||||
mBar[j].tailPeakCount = msg.tailPeakCount[j];
|
mBar[j].tailPeakCount = msg.tailPeakCount[j];
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
if (mT > gAudioIO->AILAGetLastDecisionTime()) {
|
if (mT > gAudioIO->AILAGetLastDecisionTime()) {
|
||||||
discarded = false;
|
discarded = false;
|
||||||
maxPeak = msg.peak[j] > maxPeak ? msg.peak[j] : maxPeak;
|
maxPeak = msg.peak[j] > maxPeak ? msg.peak[j] : maxPeak;
|
||||||
@ -1042,7 +1042,7 @@ void Meter::OnMeterUpdate(wxTimerEvent & WXUNUSED(event))
|
|||||||
} // while
|
} // while
|
||||||
|
|
||||||
if (numChanges > 0) {
|
if (numChanges > 0) {
|
||||||
#ifdef AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
|
||||||
if (gAudioIO->AILAIsActive() && mIsInput && !discarded) {
|
if (gAudioIO->AILAIsActive() && mIsInput && !discarded) {
|
||||||
gAudioIO->AILAProcess(maxPeak);
|
gAudioIO->AILAProcess(maxPeak);
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user