mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-29 18:46:05 +02:00
Don't store default sample format in ProjectSettings...
... it's a global preference.
This commit is contained in:
@@ -55,11 +55,11 @@ AliasedFile s.
|
||||
#include "FileFormats.h"
|
||||
#include "Prefs.h"
|
||||
#include "Project.h"
|
||||
#include "ProjectSettings.h"
|
||||
#include "Sequence.h"
|
||||
#include "ShuttleGui.h"
|
||||
#include "WaveTrack.h"
|
||||
#include "WaveClip.h"
|
||||
#include "prefs/QualityPrefs.h"
|
||||
#include "widgets/AudacityMessageBox.h"
|
||||
#include "widgets/ProgressDialog.h"
|
||||
|
||||
@@ -110,8 +110,7 @@ static void ReplaceBlockFiles(BlockPtrArray &blocks,
|
||||
void FindDependencies(AudacityProject *project,
|
||||
AliasedFileArray &outAliasedFiles)
|
||||
{
|
||||
const auto &settings = ProjectSettings::Get( *project );
|
||||
sampleFormat format = settings.GetDefaultFormat();
|
||||
sampleFormat format = QualityPrefs::SampleFormatChoice();
|
||||
|
||||
BlockPtrArray blocks;
|
||||
GetAllSeqBlocks(project, &blocks);
|
||||
@@ -168,7 +167,6 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
// STRONG-GUARANTEE
|
||||
{
|
||||
auto &dirManager = DirManager::Get( *project );
|
||||
const auto &settings = ProjectSettings::Get( *project );
|
||||
|
||||
ProgressDialog progress(
|
||||
XO("Removing Dependencies"),
|
||||
@@ -188,7 +186,7 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
BlockPtrArray blocks;
|
||||
GetAllSeqBlocks(project, &blocks);
|
||||
|
||||
const sampleFormat format = settings.GetDefaultFormat();
|
||||
const sampleFormat format = QualityPrefs::SampleFormatChoice();
|
||||
ReplacedBlockFileHash blockFileHash;
|
||||
wxLongLong completedBytes = 0;
|
||||
for (const auto blockFile : blocks) {
|
||||
|
||||
Reference in New Issue
Block a user