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