1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-16 15:41:11 +02:00

CopySamples gives more than binary choice of dither algorithm...

... And so a separate function CopySamplesNoDither is not needed
This commit is contained in:
Paul Licameli
2020-11-28 12:53:53 -05:00
parent 6eb5f3ac5b
commit 50a26d9caf
6 changed files with 31 additions and 41 deletions

View File

@@ -643,12 +643,13 @@ ProgressResult ExportPCM::Export(AudacityProject *project,
CopySamples(
mixed + (c * SAMPLE_SIZE(format)), format,
dither.data() + (c * SAMPLE_SIZE(int24Sample)), int24Sample,
numSamples, true, info.channels, info.channels
numSamples, gHighQualityDither, info.channels, info.channels
);
CopySamplesNoDither(
// Copy back without dither
CopySamples(
dither.data() + (c * SAMPLE_SIZE(int24Sample)), int24Sample,
mixed + (c * SAMPLE_SIZE(format)), format,
numSamples, info.channels, info.channels);
numSamples, DitherType::none, info.channels, info.channels);
}
}