mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-02 16:23:58 +03:00
bugfix: server io rec
This commit is contained in:
parent
7b50b9f0f3
commit
b5e3f11beb
4
client/demo/dist/index.js
vendored
4
client/demo/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -11,7 +11,8 @@
|
||||
"build:dev": "npm-run-all clean webpack:dev",
|
||||
"start": "webpack-dev-server --config webpack.dev.js",
|
||||
"build:mod": "cd ../lib && npm run build:dev && cd - && cp -r ../lib/dist/* node_modules/@dannadori/voice-changer-client-js/dist/",
|
||||
"build:mod_dos": "cd ../lib && npm run build:dev && cd ../demo && cp ../lib/dist/index.js node_modules/@dannadori/voice-changer-client-js/dist/",
|
||||
"build:mod_dos": "cd ../lib && npm run build:dev && cd ../demo && copy ../lib/dist/index.js node_modules/@dannadori/voice-changer-client-js/dist/",
|
||||
"build:mod_dos2": "copy ../lib/dist/index.js node_modules/@dannadori/voice-changer-client-js/dist/",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"keywords": [
|
||||
|
@ -106,7 +106,7 @@ export const RecorderArea = (_props: RecorderAreaProps) => {
|
||||
</>
|
||||
)
|
||||
|
||||
}, [serverIORecording, audioOutputForAnalyzer, outputAudioDeviceInfo])
|
||||
}, [serverIORecording, audioOutputForAnalyzer, outputAudioDeviceInfo, serverSetting.updateServerSettings])
|
||||
|
||||
return (
|
||||
<div className="config-sub-area">
|
||||
|
@ -92,12 +92,10 @@ export const useServerSetting = (props: UseServerSettingProps): ServerSettingSta
|
||||
const k = Object.values(ServerSettingKey)[i] as keyof VoiceChangerServerSetting
|
||||
const cur_v = serverSetting[k]
|
||||
const new_v = setting[k]
|
||||
|
||||
if (cur_v != new_v) {
|
||||
const res = await props.voiceChangerClient.updateServerSettings(k, "" + new_v)
|
||||
|
||||
setServerSetting(res)
|
||||
const storeData = { ...res }
|
||||
storeData.recordIO = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -186,8 +184,6 @@ export const useServerSetting = (props: UseServerSettingProps): ServerSettingSta
|
||||
if (!props.voiceChangerClient) return
|
||||
const res = await props.voiceChangerClient.getServerSettings()
|
||||
setServerSetting(res)
|
||||
const storeData = { ...res }
|
||||
storeData.recordIO = 0
|
||||
}
|
||||
}, [props.voiceChangerClient])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user