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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user