yxw 2023-11-21 17:11:10 +08:00
parent 2d1bf248a9
commit a8e1705174
1 changed files with 6 additions and 6 deletions

View File

@ -27,21 +27,21 @@ $(function () {
console.log(typeof(e.data)) console.log(typeof(e.data))
var eqData = $.parseJSON(e.data).content var eqData = $.parseJSON(e.data).content
if (eqData.module == "linein_L") { if (eqData.module == "linein_L") {
LineInputLeftRandomBar(eqData.value - 72) LineInputLeftRandomBar(eqData.value + 72)
} }
else if (eqData.module == "linein_R") { else if (eqData.module == "linein_R") {
LineInputRightRandomBar(eqData.value - 72) LineInputRightRandomBar(eqData.value + 72)
} else if (eqData.module == "output_L") { } else if (eqData.module == "output_L") {
OutputVolumeLeftRandomBar(eqData.value - 72); OutputVolumeLeftRandomBar(eqData.value + 72);
} }
else if (eqData.module == "output_R") { else if (eqData.module == "output_R") {
OutputVolumeRightRandomBar(eqData.value - 72); OutputVolumeRightRandomBar(eqData.value + 72);
} }
else if (eqData.module == "mic1") { else if (eqData.module == "mic1") {
Microphone1LeftRandomBar(eqData.value - 72) Microphone1LeftRandomBar(eqData.value + 72)
} }
else { else {
Microphone2LeftRandomBar(eqData.value - 72) Microphone2LeftRandomBar(eqData.value + 72)
} }
} }
ws.onclose = function (e) { ws.onclose = function (e) {