yxw 2023-11-23 11:49:53 +08:00
parent c6615f8752
commit cc93c9bd48
1 changed files with 6 additions and 6 deletions

View File

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