mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 00:03:52 +02:00
Okay, try #3(!)
The problem from the beginning has been that some parts of the code expected to receive interleaved buffers from Dither and some expected non-interleaved buffers. I was trying to keep the changes to a minimum, but it just wasn't possible. The result is that Dither can now accept any combination of non-interleaved and interleaved source and destination buffers. I still want to review every single usage of Dither (and all of the intermediaries) because I've seen allowances here and there for the lack of Dither returning interleaved buffers. Since it can now return interleaved buffers, some of that extra processing can be removed.
This commit is contained in:
@@ -54,12 +54,14 @@ AUDACITY_DLL_API void DeleteSamples(samplePtr p);
|
||||
void CopySamples(samplePtr src, sampleFormat srcFormat,
|
||||
samplePtr dst, sampleFormat dstFormat,
|
||||
unsigned int len, bool highQuality=true,
|
||||
unsigned int stride=1);
|
||||
unsigned int srcStride=1,
|
||||
unsigned int dstStride=1);
|
||||
|
||||
void CopySamplesNoDither(samplePtr src, sampleFormat srcFormat,
|
||||
samplePtr dst, sampleFormat dstFormat,
|
||||
unsigned int len,
|
||||
unsigned int stride=1);
|
||||
unsigned int srcStride=1,
|
||||
unsigned int dstStride=1);
|
||||
|
||||
void ClearSamples(samplePtr buffer, sampleFormat format,
|
||||
int start, int len);
|
||||
|
||||
Reference in New Issue
Block a user