mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-09 14:43:57 +01:00
Make many counts of tracks and channels unsigned...
... And in some places where a library uses signed types, assert that the reported number is not negative. What led me to this, is that there are many places where a size_t value for an allocation is the product of a number of channels and some other number.
This commit is contained in:
@@ -103,12 +103,12 @@ public:
|
||||
void RealtimeRemoveEffect(Effect *effect);
|
||||
void RealtimeSetEffects(const EffectArray & mActive);
|
||||
void RealtimeInitialize();
|
||||
void RealtimeAddProcessor(int group, int chans, float rate);
|
||||
void RealtimeAddProcessor(int group, unsigned chans, float rate);
|
||||
void RealtimeFinalize();
|
||||
void RealtimeSuspend();
|
||||
void RealtimeResume();
|
||||
void RealtimeProcessStart();
|
||||
sampleCount RealtimeProcess(int group, int chans, float **buffers, sampleCount numSamples);
|
||||
sampleCount RealtimeProcess(int group, unsigned chans, float **buffers, sampleCount numSamples);
|
||||
void RealtimeProcessEnd();
|
||||
int GetRealtimeLatency();
|
||||
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
int mRealtimeLatency;
|
||||
bool mRealtimeSuspended;
|
||||
bool mRealtimeActive;
|
||||
wxArrayInt mRealtimeChans;
|
||||
std::vector<unsigned> mRealtimeChans;
|
||||
wxArrayDouble mRealtimeRates;
|
||||
|
||||
// Set true if we want to skip pushing state
|
||||
|
||||
Reference in New Issue
Block a user