yxw 2023-11-23 12:03:28 +08:00
parent a812237912
commit 1703674654
1 changed files with 16 additions and 16 deletions

View File

@ -1263,10 +1263,10 @@
let resData = res
if (resData.success) {
data = resData.content
lineinputValue = parseFloat(data.lineinput.audio.toFixed(1))
mic1Value = parseFloat(data.mic1.audio.toFixed(1))
mic2Value = parseFloat(data.mic2.audio.toFixed(1))
outputValue = parseFloat(data.output.audio.toFixed(1))
lineinputValue = data.lineinput.audio.toFixed(1)
mic1Value = data.mic1.audio.toFixed(1)
mic2Value = data.mic2.audio.toFixed(1)
outputValue = data.output.audio.toFixed(1)
console.log(typeof (lineinputValue), typeof (mic1Value), typeof (mic2Value), typeof (outputValue))
bindData()
}
@ -1365,9 +1365,9 @@
if (number == -0) {
number = 0
}
console.log(number, lineinputValue.toFixed(1), typeof (number), typeof (lineinputValue))
if (number != lineinputValue.toFixed(1) && isInput == false) {
changeInputValue('lineinput', number)
console.log(number.toFixed(1), lineinputValue.toFixed(1), typeof (number), typeof (lineinputValue))
if (number.toFixed(1) != lineinputValue.toFixed(1) && isInput == false) {
changeInputValue('lineinput', number.toFixed(1))
}
}
@ -1407,9 +1407,9 @@
if (number == -0) {
number = 0
}
console.log(number, mic1Value.toFixed(1), typeof (number), typeof (mic1Value))
if (mic1Value.toFixed(1) != number && isInput == false) {
changeInputValue('mic1', number)
console.log(number.toFixed(1), mic1Value.toFixed(1), typeof (number), typeof (mic1Value))
if (mic1Value.toFixed(1) != number.toFixed(1) && isInput == false) {
changeInputValue('mic1', number.toFixed(1))
}
}
@ -1451,9 +1451,9 @@
if (number == -0) {
number = 0
}
console.log(number, mic2Value.toFixed(1), typeof (number), typeof (mic2Value))
if (mic2Value.toFixed(1) != number && isInput == false) {
changeInputValue('mic2', number)
console.log(number.toFixed(1), mic2Value.toFixed(1), typeof (number), typeof (mic2Value))
if (mic2Value.toFixed(1) != number.toFixed(1) && isInput == false) {
changeInputValue('mic2', number.toFixed(1))
}
}
@ -1496,9 +1496,9 @@
if (number == -0) {
number = 0
}
console.log(number, outputValue.toFixed(1), typeof (number), typeof (outputValue))
if (outputValue.toFixed(1) != number && isInput == false) {
changeInputValue('output', number)
console.log(number.toFixed(1), outputValue.toFixed(1), typeof (number), typeof (outputValue))
if (outputValue.toFixed(1) != number.toFixed(1) && isInput == false) {
changeInputValue('output', number.toFixed(1))
}
}