ABuffer: clamp -> clip

More natural term when talking about audio :)
This commit is contained in:
Robin Burchell 2019-07-17 09:43:43 +02:00 committed by Andreas Kling
parent ed25d524f2
commit fd6cafaa84
Notes: sideshowbarker 2024-07-19 13:13:34 +09:00
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ struct ASample {
, right(right)
{}
void clamp()
void clip()
{
if (left > 1)
left = 1;

View File

@ -90,7 +90,7 @@ void ASMixer::mix()
for (int i = 0; i < mixed_buffer.size(); ++i) {
auto& mixed_sample = mixed_buffer[i];
mixed_sample.clamp();
mixed_sample.clip();
i16 out_sample;
out_sample = mixed_sample.left * std::numeric_limits<i16>::max();