5 lines
130 B
C++
5 lines
130 B
C++
int smooth_sample(int current, int previous) {
|
|
if (current > previous) return (current + previous) / 2;
|
|
return current;
|
|
}
|