mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 05:23:10 -07:00
audioplayer: s-s: use clamp from util (#1313)
This commit is contained in:
parent
d3260b27a6
commit
7c60adc69c
|
|
@ -10041,7 +10041,7 @@ var mpss = (function() {
|
||||||
vthresh: afilt.sscv[0],
|
vthresh: afilt.sscv[0],
|
||||||
sthresh: afilt.sscv[1],
|
sthresh: afilt.sscv[1],
|
||||||
etresh: afilt.sscv[2],
|
etresh: afilt.sscv[2],
|
||||||
sspeed: Math.min(8.0, Math.max(0.15, afilt.sscv[3])),
|
sspeed: clamp(afilt.sscv[3], 0.15, 8.0),
|
||||||
rspeed: 0.2,
|
rspeed: 0.2,
|
||||||
loopInterval: 25,
|
loopInterval: 25,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue