RecordingPrefs.cpp does not depend on AudioIO.cpp...

... freeing it from dependency cycles, but no others
This commit is contained in:
Paul Licameli 2019-05-15 10:29:30 -04:00
parent 4bdcf3152f
commit 519a988467
6 changed files with 13 additions and 10 deletions

View File

@ -461,6 +461,7 @@ TimeTrack and AudioIOListener and whether the playback is looped.
#include "effects/EffectManager.h"
#include "prefs/QualityPrefs.h"
#include "prefs/RecordingPrefs.h"
#include "toolbars/ControlToolBar.h"
#include "widgets/Meter.h"
#include "widgets/ErrorDialog.h"

View File

@ -84,15 +84,6 @@ class AudioIOListener;
#define MAX_MIDI_BUFFER_SIZE 5000
#define DEFAULT_SYNTH_LATENCY 5
#define DEFAULT_LATENCY_DURATION 100.0
#define DEFAULT_LATENCY_CORRECTION -130.0
#define AUDIO_PRE_ROLL_KEY (wxT("/AudioIO/PreRoll"))
#define DEFAULT_PRE_ROLL_SECONDS 5.0
#define AUDIO_ROLL_CROSSFADE_KEY (wxT("/AudioIO/Crossfade"))
#define DEFAULT_ROLL_CROSSFADE_MS 10.0
#ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
#define AILA_DEF_TARGET_PEAK 92
#define AILA_DEF_DELTA_PEAK 2

View File

@ -13,6 +13,7 @@
#include "../TrackPanel.h"
#include "../UndoManager.h"
#include "../WaveClip.h"
#include "../prefs/RecordingPrefs.h"
#include "../prefs/TracksPrefs.h"
#include "../toolbars/ControlToolBar.h"
#include "../toolbars/TranscriptionToolBar.h"

View File

@ -25,6 +25,8 @@ other settings.
#include "../Audacity.h"
#include "DevicePrefs.h"
#include "RecordingPrefs.h"
#include <wx/defs.h>
#include <wx/choice.h>

View File

@ -27,7 +27,6 @@
#include <wx/textctrl.h>
#include <algorithm>
#include "../AudioIO.h"
#include "../prefs/GUISettings.h"
#include "../Prefs.h"
#include "../ShuttleGui.h"

View File

@ -21,6 +21,15 @@ class ShuttleGui;
#define RECORDING_PREFS_PLUGIN_SYMBOL ComponentInterfaceSymbol{ XO("Recording") }
#define DEFAULT_LATENCY_DURATION 100.0
#define DEFAULT_LATENCY_CORRECTION -130.0
#define AUDIO_PRE_ROLL_KEY (wxT("/AudioIO/PreRoll"))
#define DEFAULT_PRE_ROLL_SECONDS 5.0
#define AUDIO_ROLL_CROSSFADE_KEY (wxT("/AudioIO/Crossfade"))
#define DEFAULT_ROLL_CROSSFADE_MS 10.0
class RecordingPrefs final : public PrefsPanel
{
public: