bugfix: not in cache data(gain)

This commit is contained in:
w-okada 2023-08-03 18:50:14 +09:00
parent 1ef2fd543d
commit 5dc66d1156
3 changed files with 1164 additions and 3 deletions

View File

@ -1 +1,10 @@
<!doctype html><html style="width:100%;height:100%;overflow:hidden"><head><meta charset="utf-8"/><title>Voice Changer Client Demo</title><script defer="defer" src="index.js"></script></head><body style="width:100%;height:100%;margin:0"><div id="app" style="width:100%;height:100%"></div></body></html> <!DOCTYPE html>
<html style="width: 100%; height: 100%; overflow: hidden">
<head>
<meta charset="utf-8" />
<title>Voice Changer Client Demo</title>
<script defer src="index.js"></script></head>
<body style="width: 100%; height: 100%; margin: 0px">
<div id="app" style="width: 100%; height: 100%"></div>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -265,6 +265,9 @@ export class VoiceChangerClient {
if (!this.inputGainNode) { if (!this.inputGainNode) {
return return
} }
if(!val){
return
}
this.inputGainNode.gain.value = val this.inputGainNode.gain.value = val
} }
@ -272,6 +275,9 @@ export class VoiceChangerClient {
if (!this.outputGainNode) { if (!this.outputGainNode) {
return return
} }
if(!val){
return
}
this.outputGainNode.gain.value = val this.outputGainNode.gain.value = val
} }
@ -279,6 +285,9 @@ export class VoiceChangerClient {
if (!this.monitorGainNode) { if (!this.monitorGainNode) {
return return
} }
if(!val){
return
}
this.monitorGainNode.gain.value = val this.monitorGainNode.gain.value = val
} }