mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-06 11:42:17 +01:00
Change sampleCount arguments, variables, return values to size_t...
... whenever they really describe the size of a buffer that fits in memory, or of a block file (which is never now more than a megabyte and so could be fit in memory all at once), or a part thereof.
This commit is contained in:
@@ -74,7 +74,7 @@ const wxChar *GetSampleFormatStr(sampleFormat format)
|
||||
return wxT("Unknown format"); // compiler food
|
||||
}
|
||||
|
||||
AUDACITY_DLL_API samplePtr NewSamples(int count, sampleFormat format)
|
||||
AUDACITY_DLL_API samplePtr NewSamples(size_t count, sampleFormat format)
|
||||
{
|
||||
return (samplePtr)malloc(count * SAMPLE_SIZE(format));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user