mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-27 16:46:11 +01:00
New attached structure ProjectSettings stores rate, snap-to, et al.
This commit is contained in:
@@ -107,7 +107,8 @@ static void ReplaceBlockFiles(BlockPtrArray &blocks,
|
||||
void FindDependencies(AudacityProject *project,
|
||||
AliasedFileArray &outAliasedFiles)
|
||||
{
|
||||
sampleFormat format = project->GetDefaultFormat();
|
||||
const auto &settings = ProjectSettings::Get( *project );
|
||||
sampleFormat format = settings.GetDefaultFormat();
|
||||
|
||||
BlockPtrArray blocks;
|
||||
GetAllSeqBlocks(project, &blocks);
|
||||
@@ -164,6 +165,7 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
// STRONG-GUARANTEE
|
||||
{
|
||||
auto &dirManager = DirManager::Get( *project );
|
||||
const auto &settings = ProjectSettings::Get( *project );
|
||||
|
||||
ProgressDialog progress
|
||||
(_("Removing Dependencies"),
|
||||
@@ -183,7 +185,7 @@ static void RemoveDependencies(AudacityProject *project,
|
||||
BlockPtrArray blocks;
|
||||
GetAllSeqBlocks(project, &blocks);
|
||||
|
||||
const sampleFormat format = project->GetDefaultFormat();
|
||||
const sampleFormat format = settings.GetDefaultFormat();
|
||||
ReplacedBlockFileHash blockFileHash;
|
||||
wxLongLong completedBytes = 0;
|
||||
for (const auto blockFile : blocks) {
|
||||
|
||||
Reference in New Issue
Block a user