1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 11:42:17 +01:00

ClearSamples takes size_t arguments

This commit is contained in:
Paul Licameli
2016-09-04 16:07:17 -04:00
parent 2a2013cb4b
commit 5bf8291c97
3 changed files with 9 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ AUDACITY_DLL_API void DeleteSamples(samplePtr p)
// TODO: Risky? Assumes 0.0f is represented by 0x00000000;
void ClearSamples(samplePtr src, sampleFormat format,
int start, int len)
size_t start, size_t len)
{
auto size = SAMPLE_SIZE(format);
memset(src + start*size, 0, len*size);