1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-06 22:45:29 +01:00

Eliminate CopySamples calls where destination is always float...

.. Call the function SamplesToFloats instead, or in one place, where source
is also always float, just do memcpy.

Dithering never happened in these cases.
This commit is contained in:
Paul Licameli
2020-11-27 21:06:39 -05:00
parent bdc5efc7ea
commit 6eb5f3ac5b
6 changed files with 34 additions and 18 deletions

View File

@@ -806,11 +806,8 @@ void SqliteSampleBlock::CalcSummary(Sizes sizes)
else
{
samplebuffer.reinit((unsigned) mSampleCount);
CopySamples(mSamples.get(),
mSampleFormat,
(samplePtr) samplebuffer.get(),
floatSample,
mSampleCount);
SamplesToFloats(mSamples.get(), mSampleFormat,
samplebuffer.get(), mSampleCount);
samples = samplebuffer.get();
}