mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-05 14:18:53 +02:00
Fix wrong arguments to wxClip in AudioIO...
... the bug began at commit 494ab4eafedd4aef47a6680581a8b357f5100ec4 Now, a sine wave with the gain turned up really sounds like a square wave
This commit is contained in:
parent
22ce129f8d
commit
0b7a4d07b9
@ -3741,7 +3741,7 @@ void AudioIoCallback::AddToOutputChannel( unsigned int chan,
|
||||
// Limit values to -1.0..+1.0
|
||||
void ClampBuffer(float * pBuffer, unsigned long len){
|
||||
for(unsigned i = 0; i < len; i++)
|
||||
pBuffer[i] = wxClip( -1.0f, pBuffer[i], 1.0f);
|
||||
pBuffer[i] = wxClip( pBuffer[i], -1.0f, 1.0f);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user