mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
Fix for bug #996
This commit is contained in:
parent
1410081345
commit
cfddd5f069
@ -101,6 +101,8 @@ SimpleBlockFile::SimpleBlockFile(wxFileName baseFileName,
|
||||
bool bypassCache /* = false */):
|
||||
BlockFile(wxFileName(baseFileName.GetFullPath() + wxT(".au")), sampleLen)
|
||||
{
|
||||
mFormat = format;
|
||||
|
||||
mCache.active = false;
|
||||
|
||||
bool useCache = GetCache() && (!bypassCache);
|
||||
@ -543,7 +545,7 @@ wxLongLong SimpleBlockFile::GetSpaceUsage()
|
||||
return 0;
|
||||
} else
|
||||
{
|
||||
return sizeof(auHeader) + mSummaryInfo.totalSummaryBytes + (GetLength() * SAMPLE_SIZE(floatSample));
|
||||
return sizeof(auHeader) + mSummaryInfo.totalSummaryBytes + (GetLength() * SAMPLE_SIZE(mFormat));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,6 +91,8 @@ class SimpleBlockFile : public BlockFile {
|
||||
void ReadIntoCache();
|
||||
|
||||
SimpleBlockFileCache mCache;
|
||||
|
||||
sampleFormat mFormat;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user