1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

(bug 451, p2) Add some asserts against mMaxSamples. In Sequence::Paste(), correct var largerBlockLen declaration to be sampleCount, not the smaller int, that can overflow on comparing to sampleCount and add log error msg. Add alert dialog, log warning, and limitation in Sequence::WriteXML() if mMaxSamples exceeded. Obviate EnvPoint::WriteXML(), unused. A few comments on some "TODO" comments. Make DirManager::WriteXML() fail in debug mode, as it should not be called.

This commit is contained in:
v.audacity
2011-11-01 04:39:14 +00:00
parent b712ccda82
commit 4038f214cd
6 changed files with 48 additions and 11 deletions

View File

@@ -75,6 +75,7 @@ class BlockFile {
virtual void SetFileName(wxFileName &name);
virtual sampleCount GetLength() { return mLen; }
virtual void SetLength(const sampleCount newLen) { mLen = newLen; }
/// Locks this BlockFile, to prevent it from being moved
virtual void Lock();