bugfix: not in cache data(gain)
This commit is contained in:
parent
1ef2fd543d
commit
5dc66d1156
11
client/demo/dist/index.html
vendored
11
client/demo/dist/index.html
vendored
@ -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>
|
||||
|
1147
client/demo/dist/index.js
vendored
1147
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -265,6 +265,9 @@ export class VoiceChangerClient {
|
||||
if (!this.inputGainNode) {
|
||||
return
|
||||
}
|
||||
if(!val){
|
||||
return
|
||||
}
|
||||
this.inputGainNode.gain.value = val
|
||||
}
|
||||
|
||||
@ -272,6 +275,9 @@ export class VoiceChangerClient {
|
||||
if (!this.outputGainNode) {
|
||||
return
|
||||
}
|
||||
if(!val){
|
||||
return
|
||||
}
|
||||
this.outputGainNode.gain.value = val
|
||||
}
|
||||
|
||||
@ -279,6 +285,9 @@ export class VoiceChangerClient {
|
||||
if (!this.monitorGainNode) {
|
||||
return
|
||||
}
|
||||
if(!val){
|
||||
return
|
||||
}
|
||||
this.monitorGainNode.gain.value = val
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user