mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +01: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:
@@ -1094,7 +1094,8 @@ bool Sequence::Read(samplePtr buffer, sampleFormat format,
|
||||
|
||||
if (result != len)
|
||||
{
|
||||
wxLogWarning(wxT("Expected to read %ld samples, got %d samples."), len, result);
|
||||
wxLogWarning(wxT("Expected to read %ld samples, got %d samples."),
|
||||
(long long)len, result);
|
||||
if (result < 0)
|
||||
result = 0;
|
||||
ClearSamples(buffer, format, result, len-result);
|
||||
|
||||
Reference in New Issue
Block a user