mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +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 */):
|
bool bypassCache /* = false */):
|
||||||
BlockFile(wxFileName(baseFileName.GetFullPath() + wxT(".au")), sampleLen)
|
BlockFile(wxFileName(baseFileName.GetFullPath() + wxT(".au")), sampleLen)
|
||||||
{
|
{
|
||||||
|
mFormat = format;
|
||||||
|
|
||||||
mCache.active = false;
|
mCache.active = false;
|
||||||
|
|
||||||
bool useCache = GetCache() && (!bypassCache);
|
bool useCache = GetCache() && (!bypassCache);
|
||||||
@ -543,7 +545,7 @@ wxLongLong SimpleBlockFile::GetSpaceUsage()
|
|||||||
return 0;
|
return 0;
|
||||||
} else
|
} 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();
|
void ReadIntoCache();
|
||||||
|
|
||||||
SimpleBlockFileCache mCache;
|
SimpleBlockFileCache mCache;
|
||||||
|
|
||||||
|
sampleFormat mFormat;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user