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:
@@ -111,12 +111,12 @@ bool EffectBassTreble::SupportsRealtime()
|
||||
|
||||
// EffectClientInterface implementation
|
||||
|
||||
int EffectBassTreble::GetAudioInCount()
|
||||
unsigned EffectBassTreble::GetAudioInCount()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int EffectBassTreble::GetAudioOutCount()
|
||||
unsigned EffectBassTreble::GetAudioOutCount()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
@@ -142,7 +142,7 @@ bool EffectBassTreble::RealtimeInitialize()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EffectBassTreble::RealtimeAddProcessor(int WXUNUSED(numChannels), float sampleRate)
|
||||
bool EffectBassTreble::RealtimeAddProcessor(unsigned WXUNUSED(numChannels), float sampleRate)
|
||||
{
|
||||
EffectBassTrebleState slave;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user