mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-20 09:31:15 +02: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:
@@ -117,8 +117,8 @@ public:
|
||||
|
||||
virtual bool SetHost(EffectHostInterface *host) = 0;
|
||||
|
||||
virtual int GetAudioInCount() = 0;
|
||||
virtual int GetAudioOutCount() = 0;
|
||||
virtual unsigned GetAudioInCount() = 0;
|
||||
virtual unsigned GetAudioOutCount() = 0;
|
||||
|
||||
virtual int GetMidiInCount() = 0;
|
||||
virtual int GetMidiOutCount() = 0;
|
||||
@@ -135,7 +135,7 @@ public:
|
||||
virtual sampleCount ProcessBlock(float **inBlock, float **outBlock, sampleCount blockLen) = 0;
|
||||
|
||||
virtual bool RealtimeInitialize() = 0;
|
||||
virtual bool RealtimeAddProcessor(int numChannels, float sampleRate) = 0;
|
||||
virtual bool RealtimeAddProcessor(unsigned numChannels, float sampleRate) = 0;
|
||||
virtual bool RealtimeFinalize() = 0;
|
||||
virtual bool RealtimeSuspend() = 0;
|
||||
virtual bool RealtimeResume() = 0;
|
||||
|
Reference in New Issue
Block a user