fix
parent
2d1bf248a9
commit
a8e1705174
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue