mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 09:20:16 +01:00
Fix wrong arguments to wxClip in AudioIO...
... the bug began at commit 494ab4eafe
Now, a sine wave with the gain turned up really sounds like a square wave
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user