1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-17 16:50:26 +02:00

Keep EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT compilable...

... while not reintroducing bad dependencies, which explains the movement
of the definition of some constants
This commit is contained in:
Paul Licameli 2019-07-02 12:28:25 -04:00
parent a046d9906c
commit 6adb2abc98
4 changed files with 15 additions and 9 deletions

View File

@ -65,13 +65,6 @@ bool ValidateDeviceNames();
#define MAX_MIDI_BUFFER_SIZE 5000
#define DEFAULT_SYNTH_LATENCY 5
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
#define AILA_DEF_TARGET_PEAK 92
#define AILA_DEF_DELTA_PEAK 2
#define AILA_DEF_ANALYSIS_TIME 1000
#define AILA_DEF_NUMBER_ANALYSIS 5
#endif
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,
EVT_AUDIOIO_PLAYBACK, wxCommandEvent);
wxDECLARE_EXPORTED_EVENT(AUDACITY_DLL_API,

View File

@ -12,6 +12,9 @@
#ifndef __AUDACITY_RECORDING_PREFS__
#define __AUDACITY_RECORDING_PREFS__
#include "../Audacity.h"
#include "../Experimental.h"
#include <wx/defs.h>
#include "PrefsPanel.h"
@ -19,6 +22,13 @@
class wxTextCtrl;
class ShuttleGui;
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
#define AILA_DEF_TARGET_PEAK 92
#define AILA_DEF_DELTA_PEAK 2
#define AILA_DEF_ANALYSIS_TIME 1000
#define AILA_DEF_NUMBER_ANALYSIS 5
#endif
#define RECORDING_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Recording") }
#define DEFAULT_LATENCY_DURATION 100.0

View File

@ -173,7 +173,7 @@ class MeterPanel final : public MeterPanelBase, private PrefsListener
float GetMaxPeak() const override;
bool IsClipping() const;
bool IsClipping() const override;
void StartMonitoring();
void StopMonitoring();
@ -183,7 +183,7 @@ class MeterPanel final : public MeterPanelBase, private PrefsListener
State SaveState();
void RestoreState(const State &state);
int GetDBRange() const { return mDB ? mDBRange : -1; }
int GetDBRange() const override { return mDB ? mDBRange : -1; }
private:
void UpdatePrefs() override;

View File

@ -27,6 +27,9 @@ public:
virtual bool IsMeterDisabled() const = 0;
virtual float GetMaxPeak() const = 0;
virtual bool IsClipping() const = 0;
virtual int GetDBRange() const = 0;
bool AcceptsFocus() const override { return s_AcceptsFocus; }
bool AcceptsFocusFromKeyboard() const override { return true; }