mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +02:00
comments, cleanup
This commit is contained in:
parent
d74e5fa586
commit
6f50a64050
@ -188,7 +188,7 @@ class DirManager: public XMLTagHandler {
|
||||
sampleFormat mLoadingFormat;
|
||||
sampleCount mLoadingBlockLen;
|
||||
|
||||
sampleCount mMaxSamples;
|
||||
sampleCount mMaxSamples; // max samples per block
|
||||
|
||||
static wxString globaltemp;
|
||||
wxString mytemp;
|
||||
|
@ -448,14 +448,6 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest)
|
||||
|
||||
bool Sequence::Paste(sampleCount s, const Sequence *src)
|
||||
{
|
||||
// This ancient code just blithely bounded s, rather than throwing an error.
|
||||
// Now enforcing the bounds.
|
||||
// Also, the second test should have been >, not >=, because if (s == mNumSamples),
|
||||
// there's no point in setting s to mNumSamples.
|
||||
//if ((s < 0)
|
||||
// s = 0;
|
||||
//if (s >= mNumSamples)
|
||||
// s = mNumSamples;
|
||||
if ((s < 0) || (s > mNumSamples))
|
||||
{
|
||||
wxLogError(
|
||||
|
@ -184,8 +184,8 @@ class Sequence: public XMLTagHandler {
|
||||
sampleFormat mSampleFormat;
|
||||
sampleCount mNumSamples;
|
||||
|
||||
sampleCount mMinSamples;
|
||||
sampleCount mMaxSamples;
|
||||
sampleCount mMinSamples; // min samples per block
|
||||
sampleCount mMaxSamples; // max samples per block
|
||||
|
||||
bool mErrorOpening;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user