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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user