1
0
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:
Leland Lucius 2015-05-31 19:20:31 -05:00
parent 1410081345
commit cfddd5f069
2 changed files with 5 additions and 1 deletions

View File

@ -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));
}
}

View File

@ -91,6 +91,8 @@ class SimpleBlockFile : public BlockFile {
void ReadIntoCache();
SimpleBlockFileCache mCache;
sampleFormat mFormat;
};
#endif