1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-13 14:13:32 +02:00

Define sampleCount as a class, not a type alias...

... Define lots of operators for disambiguation, but they will go away after
all conversions from sampleCount to built-in numerical types are forced
to be explicit.
This commit is contained in:
Paul Licameli
2016-08-20 21:57:55 -04:00
parent fbfee42a00
commit 26b5e77050
7 changed files with 253 additions and 17 deletions

View File

@@ -447,7 +447,7 @@ int PCMImportFileHandle::Import(TrackFactory *trackFactory,
wxASSERT(mInfo.channels >= 0);
while (NULL == srcbuffer.Allocate(maxBlock * mInfo.channels, mFormat).ptr())
{
maxBlock >>= 1;
maxBlock /= 2;
if (maxBlock < 1)
return eProgressFailed;
}