mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-02 00:49:33 +02:00
comments, cleanup
This commit is contained in:
parent
d74e5fa586
commit
6f50a64050
@ -188,7 +188,7 @@ class DirManager: public XMLTagHandler {
|
|||||||
sampleFormat mLoadingFormat;
|
sampleFormat mLoadingFormat;
|
||||||
sampleCount mLoadingBlockLen;
|
sampleCount mLoadingBlockLen;
|
||||||
|
|
||||||
sampleCount mMaxSamples;
|
sampleCount mMaxSamples; // max samples per block
|
||||||
|
|
||||||
static wxString globaltemp;
|
static wxString globaltemp;
|
||||||
wxString mytemp;
|
wxString mytemp;
|
||||||
|
@ -448,14 +448,6 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest)
|
|||||||
|
|
||||||
bool Sequence::Paste(sampleCount s, const Sequence *src)
|
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))
|
if ((s < 0) || (s > mNumSamples))
|
||||||
{
|
{
|
||||||
wxLogError(
|
wxLogError(
|
||||||
|
@ -184,8 +184,8 @@ class Sequence: public XMLTagHandler {
|
|||||||
sampleFormat mSampleFormat;
|
sampleFormat mSampleFormat;
|
||||||
sampleCount mNumSamples;
|
sampleCount mNumSamples;
|
||||||
|
|
||||||
sampleCount mMinSamples;
|
sampleCount mMinSamples; // min samples per block
|
||||||
sampleCount mMaxSamples;
|
sampleCount mMaxSamples; // max samples per block
|
||||||
|
|
||||||
bool mErrorOpening;
|
bool mErrorOpening;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user