mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-25 07:35:44 +01:00
Use Settings for default sample rate and format...
... The first is an example of a Setting with a computed default value. Also making a new file to hold them, separate from the GUI that changes them in QualityPrefs; fewer things depend on QualityPrefs
This commit is contained in:
@@ -36,7 +36,7 @@ Paul Licameli split from AudacityProject.cpp
|
||||
#include "wxFileNameWrapper.h"
|
||||
#include "import/Import.h"
|
||||
#include "import/ImportMIDI.h"
|
||||
#include "prefs/QualityPrefs.h"
|
||||
#include "prefs/QualitySettings.h"
|
||||
#include "toolbars/MixerToolBar.h"
|
||||
#include "toolbars/SelectionBar.h"
|
||||
#include "toolbars/SpectralSelectionBar.h"
|
||||
@@ -1052,7 +1052,7 @@ int ProjectManager::GetEstimatedRecordingMinsLeftOnDisk(long lCaptureChannels) {
|
||||
auto &project = mProject;
|
||||
|
||||
// Obtain the current settings
|
||||
auto oCaptureFormat = QualityPrefs::SampleFormatChoice();
|
||||
auto oCaptureFormat = QualitySettings::SampleFormatChoice();
|
||||
if (lCaptureChannels == 0)
|
||||
lCaptureChannels = AudioIORecordChannels.Read();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user