🗑️[Remove] Model : 不要なコード(createDictOSCReceiveParameters)を削除
This commit is contained in:
@@ -914,35 +914,6 @@ def callbackSetEnableSendReceivedMessageToVrc(value):
|
|||||||
config.ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC = value
|
config.ENABLE_SEND_RECEIVED_MESSAGE_TO_VRC = value
|
||||||
# ---------------------Speaker2Chatbox---------------------
|
# ---------------------Speaker2Chatbox---------------------
|
||||||
|
|
||||||
def createDictOSCReceiveParameters():
|
|
||||||
osc_parameter_prefix = "/avatar/parameters/"
|
|
||||||
param_MuteSelf = "MuteSelf"
|
|
||||||
param_Voice = "Voice"
|
|
||||||
|
|
||||||
def change_handler_mute(address, osc_arguments):
|
|
||||||
if config.ENABLE_VRC_MIC_MUTE_SYNC is True:
|
|
||||||
if osc_arguments is True and change_handler_mute.status_mute is False:
|
|
||||||
model.stopPutQueueMicAudio()
|
|
||||||
change_handler_mute.status_mute = True
|
|
||||||
elif osc_arguments is False and change_handler_mute.status_mute is True:
|
|
||||||
model.startPutQueueMicAudio()
|
|
||||||
change_handler_mute.status_mute = False
|
|
||||||
|
|
||||||
def change_handler_voice(address, osc_arguments):
|
|
||||||
if config.ENABLE_VRC_MIC_MUTE_SYNC is True:
|
|
||||||
if change_handler_mute.status_mute is True:
|
|
||||||
model.startPutQueueMicAudio()
|
|
||||||
change_handler_mute.status_mute = False
|
|
||||||
|
|
||||||
change_handler_mute.status_mute = False
|
|
||||||
|
|
||||||
dict_filter_and_target = {
|
|
||||||
osc_parameter_prefix + param_MuteSelf: change_handler_mute,
|
|
||||||
osc_parameter_prefix + param_Voice: change_handler_voice,
|
|
||||||
}
|
|
||||||
return dict_filter_and_target
|
|
||||||
|
|
||||||
|
|
||||||
# Advanced Settings Tab
|
# Advanced Settings Tab
|
||||||
def callbackSetOscIpAddress(value):
|
def callbackSetOscIpAddress(value):
|
||||||
if value == "":
|
if value == "":
|
||||||
|
|||||||
Reference in New Issue
Block a user