[feat] add protocol to control audio capture

This commit is contained in:
dijunkun
2024-08-15 14:50:47 +08:00
parent 4704d494ec
commit 018231eee4
6 changed files with 107 additions and 86 deletions

View File

@@ -48,6 +48,12 @@ int Render::ControlBar() {
localization::audio_capture[localization_language_index_];
}
audio_capture_button_pressed_ = !audio_capture_button_pressed_;
RemoteAction remote_action;
remote_action.type = ControlType::audio_capture;
remote_action.a = audio_capture_button_pressed_;
SendData(peer_, DATA_TYPE::DATA, (const char *)&remote_action,
sizeof(remote_action));
}
ImGui::SameLine();