Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2026-02-28 02:10:14 +00:00
23 changed files with 865 additions and 419 deletions
+3
View File
@@ -117,6 +117,9 @@ namespace constants::stream
constexpr float fade_delay = 3; constexpr float fade_delay = 3;
constexpr float fade_duration = 0.25; constexpr float fade_duration = 0.25;
constexpr float urgent_fade_delay = 5;
constexpr ImVec4 urgent_border_color = {8.f, .6f, 0.f, .8f};
// Dimming for the streamed video when the GUI is interactable // Dimming for the streamed video when the GUI is interactable
constexpr float dimming_scale = 0.4; constexpr float dimming_scale = 0.4;
constexpr float dimming_bias = 0.01; constexpr float dimming_bias = 0.01;
+13 -5
View File
@@ -882,10 +882,19 @@ void scenes::lobby::render(const XrFrameState & frame_state)
if (next_scene) if (next_scene)
{ {
if (!next_scene->alive()) switch (next_scene->current_state())
next_scene.reset(); {
else if (next_scene->current_state() == scenes::stream::state::streaming) case scenes::stream::state::streaming:
application::push_scene(next_scene); application::push_scene(next_scene);
break;
case scenes::stream::state::shutdown:
current_tab = tab::server_list;
break;
default:
break;
}
} }
update_server_list(); update_server_list();
@@ -1361,7 +1370,6 @@ void scenes::lobby::on_unfocused()
right_hand.reset(); right_hand.reset();
face_tracker.emplace<std::monostate>(); face_tracker.emplace<std::monostate>();
clear_swapchains();
multicast.reset(); multicast.reset();
} }
+1
View File
@@ -224,6 +224,7 @@ class lobby : public scene_impl<lobby>
void gui_connecting(locked_notifiable<pin_request_data> & request); void gui_connecting(locked_notifiable<pin_request_data> & request);
void gui_enter_pin(locked_notifiable<pin_request_data> & request); void gui_enter_pin(locked_notifiable<pin_request_data> & request);
void gui_connected(XrTime predicted_display_time); void gui_connected(XrTime predicted_display_time);
void gui_disconnected();
void gui_server_list(); void gui_server_list();
void gui_new_server(); void gui_new_server();
void gui_settings(); void gui_settings();
+49 -6
View File
@@ -249,11 +249,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & pin_requ
void scenes::lobby::gui_connected(XrTime predicted_display_time) void scenes::lobby::gui_connected(XrTime predicted_display_time)
{ {
if (not next_scene) assert(next_scene);
{
current_tab = tab::server_list;
return;
}
if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel) if (next_scene->apps.draw_gui(*imgui_ctx, _("Disconnect")) == app_launcher::Cancel)
{ {
@@ -262,6 +258,42 @@ void scenes::lobby::gui_connected(XrTime predicted_display_time)
} }
} }
void scenes::lobby::gui_disconnected()
{
using constants::style::button_size;
std::string close_button_label = _("Close");
if (!async_error)
{
async_error = next_scene->pop_stream_error();
if (!async_error)
{
next_scene.reset();
ImGui::CloseCurrentPopup();
return;
}
}
ImGui::Dummy({1000, 1});
ImGui::PushFont(nullptr, constants::gui::font_size_large);
if (server_name == "")
CenterTextH(fmt::format(_F("Disconnected")));
else
CenterTextH(fmt::format(_F("Disconnected from {}"), server_name));
ImGui::PopFont();
ImGui::Text("%s", async_error->c_str());
ImGui::SetCursorPosX(ImGui::GetWindowContentRegionMax().x - button_size.x - ImGui::GetStyle().WindowPadding.x);
if (ImGui::Button(close_button_label.c_str(), button_size))
{
async_error.reset();
}
imgui_ctx->vibrate_on_hover();
}
void scenes::lobby::gui_new_server() void scenes::lobby::gui_new_server()
{ {
using constants::style::button_size; using constants::style::button_size;
@@ -496,8 +528,12 @@ void scenes::lobby::gui_server_list()
config.save(); config.save();
} }
// Check if we need to report errors after a disconnect
if (next_scene and next_scene->current_state() == scenes::stream::state::shutdown and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("disconnected");
// Check if an automatic connection has started // Check if an automatic connection has started
if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("connecting")) if ((async_session.valid() || next_scene) and not ImGui::IsPopupOpen("", ImGuiPopupFlags_AnyPopup))
ImGui::OpenPopup("connecting"); ImGui::OpenPopup("connecting");
const auto & popup_layer = imgui_ctx->layers()[1]; const auto & popup_layer = imgui_ctx->layers()[1];
@@ -516,6 +552,13 @@ void scenes::lobby::gui_server_list()
ImGui::EndPopup(); ImGui::EndPopup();
} }
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("disconnected", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
{
gui_disconnected();
ImGui::EndPopup();
}
ImGui::SetNextWindowSize({800, 0}); ImGui::SetNextWindowSize({800, 0});
ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f)); ImGui::SetNextWindowPos({popup_layer_center.x, popup_layer_center.y}, ImGuiCond_FirstUseEver, ImVec2(0.5f, 0.5f));
if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize)) if (ImGui::BeginPopupModal("add or edit server", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize))
+23 -7
View File
@@ -248,6 +248,11 @@ std::shared_ptr<scenes::stream> scenes::stream::create(std::unique_ptr<wivrn_ses
info.hand_tracking = config.check_feature(feature::hand_tracking); info.hand_tracking = config.check_feature(feature::hand_tracking);
info.eye_gaze = config.check_feature(feature::eye_gaze); info.eye_gaze = config.check_feature(feature::eye_gaze);
if (self->instance.has_extension(XR_EXT_USER_PRESENCE_EXTENSION_NAME))
{
info.user_presence = self->system.user_presence_properties().supportsUserPresence;
}
if (config.check_feature(feature::face_tracking)) if (config.check_feature(feature::face_tracking))
{ {
switch (self->system.face_tracker_supported()) switch (self->system.face_tracker_supported())
@@ -523,7 +528,6 @@ void scenes::stream::on_unfocused()
renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets; renderer->wait_idle(); // Must be before the scene data because the renderer uses its descriptor sets;
world.clear(); world.clear();
input.reset(); input.reset();
clear_swapchains();
left_hand.reset(); left_hand.reset();
right_hand.reset(); right_hand.reset();
apps.reset(); apps.reset();
@@ -562,7 +566,7 @@ void scenes::stream::push_blit_handle(shard_accumulator * decoder, std::shared_p
if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty())) if (state_ != state::streaming and not(decoders[0].empty() and decoders[1].empty()))
{ {
state_ = state::streaming; set_state(state::streaming);
spdlog::info("Stream scene ready at t={}", instance.now()); spdlog::info("Stream scene ready at t={}", instance.now());
} }
} }
@@ -759,16 +763,16 @@ bool scenes::stream::is_gui_interactable() const
void scenes::stream::render(const XrFrameState & frame_state) void scenes::stream::render(const XrFrameState & frame_state)
{ {
if (exiting) if (state_ == state::shutdown)
application::pop_scene(); application::pop_scene();
display_time_phase = frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod; display_time_phase = frame_state.predictedDisplayPeriod ? frame_state.predictedDisplayTime % frame_state.predictedDisplayPeriod : 0;
display_time_period = frame_state.predictedDisplayPeriod; display_time_period = frame_state.predictedDisplayPeriod;
real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod; real_display_period = last_display_time ? frame_state.predictedDisplayTime - last_display_time : frame_state.predictedDisplayPeriod;
last_display_time = frame_state.predictedDisplayTime; last_display_time = frame_state.predictedDisplayTime;
std::shared_lock lock(decoder_mutex); std::shared_lock lock(decoder_mutex);
if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or exiting) if (not frame_state.shouldRender or (decoders[0].empty() and decoders[1].empty()) or state_ == state::shutdown)
{ {
// TODO: stop/restart video stream // TODO: stop/restart video stream
session.begin_frame(); session.begin_frame();
@@ -848,7 +852,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
blit_handle->feedback.blitted = instance.now(); blit_handle->feedback.blitted = instance.now();
if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000) if (blit_handle->feedback.blitted - blit_handle->feedback.received_from_decoder > 1'000'000'000)
state_ = stream::state::stalled; set_state(state::stalled);
++blit_handle->feedback.times_displayed; ++blit_handle->feedback.times_displayed;
blit_handle->feedback.displayed = frame_state.predictedDisplayTime; blit_handle->feedback.displayed = frame_state.predictedDisplayTime;
@@ -1136,7 +1140,7 @@ void scenes::stream::render(const XrFrameState & frame_state)
void scenes::stream::exit() void scenes::stream::exit()
{ {
exiting = true; state_ = state::shutdown;
} }
void scenes::stream::setup(const to_headset::video_stream_description & description) void scenes::stream::setup(const to_headset::video_stream_description & description)
@@ -1261,6 +1265,18 @@ scene::meta & scenes::stream::get_meta_scene()
return m; return m;
} }
std::optional<std::string> scenes::stream::pop_stream_error()
{
auto queue = stream_error_queue.lock();
if (queue->empty())
return std::nullopt;
auto err = std::make_optional(queue->front());
queue->pop();
return err;
}
void scenes::stream::on_xr_event(const xr::event & event) void scenes::stream::on_xr_event(const xr::event & event)
{ {
switch (event.header.type) switch (event.header.type)
+27 -9
View File
@@ -32,6 +32,7 @@
#include "wivrn_packets.h" #include "wivrn_packets.h"
#include "xr/space.h" #include "xr/space.h"
#include <mutex> #include <mutex>
#include <queue>
#include <shared_mutex> #include <shared_mutex>
#include <thread> #include <thread>
#include <vulkan/vulkan_core.h> #include <vulkan/vulkan_core.h>
@@ -45,7 +46,8 @@ public:
{ {
initializing, initializing,
streaming, streaming,
stalled stalled,
shutdown,
}; };
static const size_t image_buffer_size = 3; static const size_t image_buffer_size = 3;
@@ -72,7 +74,6 @@ private:
std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time); std::array<std::shared_ptr<wivrn::shard_accumulator::blit_handle>, decoder_count> common_frame(XrTime display_time);
std::unique_ptr<wivrn_session> network_session; std::unique_ptr<wivrn_session> network_session;
std::atomic<bool> exiting = false;
std::thread network_thread; std::thread network_thread;
thread_safe<to_headset::tracking_control> tracking_control{}; thread_safe<to_headset::tracking_control> tracking_control{};
std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand std::array<std::atomic<interaction_profile>, 2> interaction_profiles; // left and right hand
@@ -104,7 +105,16 @@ private:
std::unordered_multimap<device_id, haptics_action> haptics_actions; std::unordered_multimap<device_id, haptics_action> haptics_actions;
std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions; std::vector<std::tuple<device_id, XrAction, XrActionType>> input_actions;
state state_ = state::initializing; std::atomic<state> state_ = state::initializing;
void set_state(state new_state)
{
state prev = state_;
if (prev == state::shutdown)
return;
state_.compare_exchange_strong(prev, new_state);
}
xr::swapchain swapchain; xr::swapchain swapchain;
@@ -134,14 +144,24 @@ private:
application_launcher, application_launcher,
}; };
struct gui_toast
{
std::string content;
bool is_urgent = false;
};
bool is_gui_interactable() const; bool is_gui_interactable() const;
std::atomic<gui_status> gui_status = gui_status::hidden; std::atomic<gui_status> gui_status = gui_status::hidden;
enum gui_status last_gui_status = gui_status::hidden; enum gui_status last_gui_status = gui_status::hidden;
enum gui_status next_gui_status = gui_status::applications; enum gui_status next_gui_status = gui_status::applications;
XrTime gui_status_last_change;
float dimming = 0; float dimming = 0;
thread_safe<std::optional<gui_toast>> gui_toast;
std::atomic<XrTime> gui_status_last_change;
thread_safe<std::queue<std::string>> stream_error_queue;
XrAction plots_toggle_1 = XR_NULL_HANDLE; XrAction plots_toggle_1 = XR_NULL_HANDLE;
XrAction plots_toggle_2 = XR_NULL_HANDLE; XrAction plots_toggle_2 = XR_NULL_HANDLE;
XrAction recenter_left = XR_NULL_HANDLE; XrAction recenter_left = XR_NULL_HANDLE;
@@ -198,6 +218,7 @@ public:
void operator()(to_headset::pin_check_2 &&) {}; void operator()(to_headset::pin_check_2 &&) {};
void operator()(to_headset::pin_check_4 &&) {}; void operator()(to_headset::pin_check_4 &&) {};
void operator()(to_headset::handshake &&) {}; void operator()(to_headset::handshake &&) {};
void operator()(to_headset::server_message &&);
void operator()(to_headset::video_stream_data_shard &&); void operator()(to_headset::video_stream_data_shard &&);
void operator()(to_headset::haptics &&); void operator()(to_headset::haptics &&);
void operator()(to_headset::timesync_query &&); void operator()(to_headset::timesync_query &&);
@@ -221,14 +242,10 @@ public:
} }
void exit(); void exit();
bool alive() const
{
return !exiting;
}
void start_application(std::string appid); void start_application(std::string appid);
static meta & get_meta_scene(); static meta & get_meta_scene();
std::optional<std::string> pop_stream_error();
private: private:
void process_packets(); void process_packets();
@@ -312,6 +329,7 @@ private:
void gui_bitrate_settings(float predicted_display_period); void gui_bitrate_settings(float predicted_display_period);
void gui_foveation_settings(float predicted_display_period); void gui_foveation_settings(float predicted_display_period);
void gui_applications(); void gui_applications();
void gui_toasts();
void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period); void draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period);
}; };
} // namespace scenes } // namespace scenes
+37 -3
View File
@@ -729,6 +729,19 @@ void scenes::stream::gui_applications()
ImGui::PopStyleVar(3); ImGui::PopStyleVar(3);
} }
void scenes::stream::gui_toasts()
{
auto toast = gui_toast.lock();
if (!toast->has_value())
{
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window"));
return;
}
ImGui::Text("%s", (*toast)->content.c_str());
}
void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period) void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicted_display_period)
{ {
if (not(plots_toggle_1 and plots_toggle_2)) if (not(plots_toggle_1 and plots_toggle_2))
@@ -788,14 +801,23 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
} }
float alpha = 1; float alpha = 1;
bool is_urgent = false;
if (gui_status == gui_status::hidden) if (gui_status == gui_status::hidden)
{ {
float t = (predicted_display_time - gui_status_last_change) * 1.e-9f; auto toast = gui_toast.lock();
if (toast->has_value())
is_urgent = (*toast)->is_urgent;
alpha = std::clamp<float>(1 - (t - constants::stream::fade_delay) / constants::stream::fade_duration, 0, 1); float t = (predicted_display_time - gui_status_last_change) * 1.e-9f;
float delay = is_urgent ? constants::stream::urgent_fade_delay : constants::stream::fade_delay;
alpha = std::clamp<float>(1 - (t - delay) / constants::stream::fade_duration, 0, 1);
if (alpha == 0) if (alpha == 0)
{
toast->reset();
return; return;
}
} }
// Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes // Lock the GUI position to the head, do it before displaying the GUI to avoid being off by one frame when gui_status changes
@@ -879,6 +901,12 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
break; break;
} }
if (is_urgent)
{
ImGui::PushStyleColor(ImGuiCol_Border, constants::stream::urgent_border_color);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 4);
}
ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0); ImGui::PushStyleVar(ImGuiStyleVar_ChildBorderSize, 0);
if (always_auto_resize) if (always_auto_resize)
{ {
@@ -891,13 +919,19 @@ void scenes::stream::draw_gui(XrTime predicted_display_time, XrDuration predicte
ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove); ImGui::Begin("Stream settings", nullptr, ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove);
} }
if (is_urgent)
{
ImGui::PopStyleColor(1);
ImGui::PopStyleVar(1);
}
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8}); ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, {8, 8});
ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10); ImGui::PushStyleVar(ImGuiStyleVar_FrameRounding, 10);
switch (gui_status) switch (gui_status)
{ {
case gui_status::hidden: case gui_status::hidden:
ImGui::Text("%s", _S("Press both thumbsticks to display the WiVRn window")); gui_toasts();
break; break;
case gui_status::overlay_only: case gui_status::overlay_only:
+23 -1
View File
@@ -33,7 +33,7 @@ void scenes::stream::process_packets()
#ifdef __ANDROID__ #ifdef __ANDROID__
application::instance().setup_jni(); application::instance().setup_jni();
#endif #endif
while (not exiting) while (state_ != state::shutdown)
{ {
try try
{ {
@@ -47,6 +47,28 @@ void scenes::stream::process_packets()
} }
} }
void scenes::stream::operator()(to_headset::server_message && message)
{
switch (message.kind)
{
case to_headset::server_message::kind::toast:
case to_headset::server_message::kind::toast_urgent: {
auto toast = gui_toast.lock();
toast->emplace(message.msg, message.kind == to_headset::server_message::kind::toast_urgent);
gui_status_last_change = instance.now();
break;
}
case to_headset::server_message::kind::error: {
auto queue = stream_error_queue.lock();
queue->emplace(std::move(message.msg));
break;
}
}
}
void scenes::stream::operator()(to_headset::video_stream_data_shard && shard) void scenes::stream::operator()(to_headset::video_stream_data_shard && shard)
{ {
std::shared_lock lock(decoder_mutex); std::shared_lock lock(decoder_mutex);
+1 -1
View File
@@ -341,7 +341,7 @@ void scenes::stream::tracking()
XrDuration frame_duration; XrDuration frame_duration;
XrTime pattern_begin = instance.now(); XrTime pattern_begin = instance.now();
while (not exiting) while (state_ != state::shutdown)
{ {
try try
{ {
+17
View File
@@ -608,6 +608,22 @@ struct handshake
int stream_port; int stream_port;
}; };
struct server_message
{
enum class kind : uint8_t
{
// in-stream toasts (not buffered)
toast,
toast_urgent,
// displayed in lobby after disconnect (buffered)
error,
};
kind kind;
std::string msg;
};
struct foveation_parameter struct foveation_parameter
{ {
// The number of source pixels for each ratio, // The number of source pixels for each ratio,
@@ -766,6 +782,7 @@ using packets = std::variant<
pin_check_2, pin_check_2,
pin_check_4, pin_check_4,
handshake, handshake,
server_message,
audio_stream_description, audio_stream_description,
video_stream_description, video_stream_description,
audio_data, audio_data,
+155 -145
View File
@@ -1,13 +1,13 @@
# #
# SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net> # SPDX-FileCopyrightText: 2025 Guillaume Meunier <guillaume.meunier@centraliens.net>
# Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025. # Guillaume Meunier <guillaume.meunier@centraliens.net>, 2025-2026.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.15\n" "Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n" "POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2025-12-29 15:40+0100\n" "PO-Revision-Date: 2026-02-27 16:12+0100\n"
"Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n" "Last-Translator: Guillaume Meunier <guillaume.meunier@centraliens.net>\n"
"Language-Team: French <>\n" "Language-Team: French <>\n"
"Language: French\n" "Language: French\n"
@@ -21,27 +21,27 @@ msgstr ""
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "Aucun format de swapchain supporté" msgstr "Aucun format de swapchain supporté"
#: client/scenes/app_launcher.cpp:128 #: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "Connecté au serveur WiVRn" msgstr "Connecté au serveur WiVRn"
#: client/scenes/app_launcher.cpp:130 #: client/scenes/app_launcher.cpp:129
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connecté à {}" msgstr "Connecté à {}"
#: client/scenes/app_launcher.cpp:136 #: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "" msgstr ""
"Démarrez une application sur le serveur pour commencer la transmission." "Démarrez une application sur le serveur pour commencer la transmission."
#: client/scenes/app_launcher.cpp:146 #: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "" msgstr ""
"Démarrez une application sur le serveur ou depuis la liste pour commencer la " "Démarrez une application sur le serveur ou depuis la liste pour commencer la "
"transmission." "transmission."
#: client/scenes/app_launcher.cpp:148 #: client/scenes/app_launcher.cpp:147
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "" msgstr ""
@@ -73,11 +73,11 @@ msgstr "Impossible de se connecter à {} ({}) : {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "Attente de connexion" msgstr "Attente de connexion"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Vue réelle" msgstr "Vue réelle"
#: client/scenes/lobby.cpp:1331 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Environnement par défaut" msgstr "Environnement par défaut"
@@ -96,14 +96,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Désactivé" msgstr "Désactivé"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1015 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Déconnecter" msgstr "Déconnecter"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Fermer" msgstr "Fermer"
@@ -124,32 +125,41 @@ msgstr "Code PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Entrez le code PIN affiché sur le tableau de bord" msgstr "Entrez le code PIN affiché sur le tableau de bord"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connexion terminée"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connexion à {} terminée"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nom" msgstr "Nom"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Adresse" msgstr "Adresse"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Port" msgstr "Port"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "TCP seulement" msgstr "TCP seulement"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Annuler" msgstr "Annuler"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Enregistrer" msgstr "Enregistrer"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -157,46 +167,46 @@ msgstr ""
"Démarrez un serveur WiVRn sur\n" "Démarrez un serveur WiVRn sur\n"
"le réseau local" "le réseau local"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Autoconnexion" msgstr "Autoconnexion"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Connexion" msgstr "Connexion"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Version du serveur incompatible" msgstr "Version du serveur incompatible"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Serveur non disponible" msgstr "Serveur non disponible"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Français" msgstr "Français"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Langue système" msgstr "Langue système"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Taux de rafraichissement" msgstr "Taux de rafraichissement"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -205,38 +215,38 @@ msgstr ""
"des performances mesurées.\n" "des performances mesurées.\n"
"Peut causer des clignotements lors du changement de fréquence." "Peut causer des clignotements lors du changement de fréquence."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Taux minimal" msgstr "Taux minimal"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Niveau de fovéation" msgstr "Niveau de fovéation"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Résolution de rendu" msgstr "Résolution de rendu"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{} %% - {}x{} par œil" msgstr "{} %% - {}x{} par œil"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner" msgstr "Les résolutions plus grandes que {}x{} pourraient ne pas fonctionner"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Fovéation d'encodage" msgstr "Fovéation d'encodage"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{} %%" msgstr "{} %%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -245,7 +255,7 @@ msgstr ""
"porte le regard, ce qui diminue la latence, réduit la\n" "porte le regard, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité." "consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -254,88 +264,88 @@ msgstr ""
"de l'image, ce qui diminue la latence, réduit la\n" "de l'image, ce qui diminue la latence, réduit la\n"
"consommation d'énergie et améliore la qualité." "consommation d'énergie et améliore la qualité."
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatique" msgstr "Automatique"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10 bits" msgstr "10 bits"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Débit" msgstr "Débit"
#: client/scenes/lobby_gui.cpp:772 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{} Mbit/s" msgstr "{} Mbit/s"
#: client/scenes/lobby_gui.cpp:783 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Mode haute consommation" msgstr "Mode haute consommation"
#: client/scenes/lobby_gui.cpp:786 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Augmente la consommation d'énergie pour permettre une résolution\n" "Augmente la consommation d'énergie pour permettre une résolution\n"
"et une fréquence de rafraîchissement plus élevées" "et une fréquence de rafraîchissement plus élevées"
#: client/scenes/lobby_gui.cpp:792 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Activer le micro" msgstr "Activer le micro"
#: client/scenes/lobby_gui.cpp:801 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Utiliser les données brutes du micro" msgstr "Utiliser les données brutes du micro"
#: client/scenes/lobby_gui.cpp:807 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "Désactive les traitements tels que la suppression du bruit" msgstr "Désactive les traitements tels que la suppression du bruit"
#: client/scenes/lobby_gui.cpp:814 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Activer le suivi des mains" msgstr "Activer le suivi des mains"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Cette fonctionnalité n'est pas supportée par le casque" msgstr "Cette fonctionnalité n'est pas supportée par le casque"
#: client/scenes/lobby_gui.cpp:825 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Activer le suivi des yeux" msgstr "Activer le suivi des yeux"
#: client/scenes/lobby_gui.cpp:836 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Activer le suivi du visage" msgstr "Activer le suivi du visage"
#: client/scenes/lobby_gui.cpp:848 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Activer le suivi du corps" msgstr "Activer le suivi du corps"
#: client/scenes/lobby_gui.cpp:861 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -346,11 +356,11 @@ msgstr ""
"suivi des mouvements du casque.\n" "suivi des mouvements du casque.\n"
"Sinon les positions seront déduites de celles des manettes et casque." "Sinon les positions seront déduites de celles des manettes et casque."
#: client/scenes/lobby_gui.cpp:871 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Activer le suivi du bas du corps" msgstr "Activer le suivi du bas du corps"
#: client/scenes/lobby_gui.cpp:877 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -361,11 +371,11 @@ msgstr ""
"paramètres\n" "paramètres\n"
"de suivi de mouvements du casque." "de suivi de mouvements du casque."
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Activer le suivi des hanches" msgstr "Activer le suivi des hanches"
#: client/scenes/lobby_gui.cpp:886 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -373,11 +383,11 @@ msgstr ""
"N'a d'effet que si le suivi du bas du corps est activé.\n" "N'a d'effet que si le suivi du bas du corps est activé.\n"
"Peut être utile si les hanches sont suivies via un autre moyen." "Peut être utile si les hanches sont suivies via un autre moyen."
#: client/scenes/lobby_gui.cpp:895 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Activer la fenêtre WiVRn lors de la transmission" msgstr "Activer la fenêtre WiVRn lors de la transmission"
#: client/scenes/lobby_gui.cpp:898 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -387,25 +397,25 @@ msgstr ""
"Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux " "Lorsque activé, la fenêtre peut être affichée en appuyant sur les deux "
"sticks." "sticks."
#: client/scenes/lobby_gui.cpp:902 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valeurs de configuration étendues" msgstr "Valeurs de configuration étendues"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "" msgstr ""
"Permet d'utiliser des limites plus hautes,\n" "Permet d'utiliser des limites plus hautes,\n"
"peut ne pas fonctionner correctement." "peut ne pas fonctionner correctement."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-traitement OpenXR" msgstr "Post-traitement OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Suréchantillonnage" msgstr "Suréchantillonnage"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -413,11 +423,11 @@ msgstr ""
"Réduit le scintillement des contours à haut contraste.\n" "Réduit le scintillement des contours à haut contraste.\n"
"Utile quand la résolution d’entrée est haute comparée à l’écran du casque" "Utile quand la résolution d’entrée est haute comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Affinage de netteté" msgstr "Affinage de netteté"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -425,129 +435,129 @@ msgstr ""
"Améliore la clarté des contours à haut contraste et réduit le flou.\n" "Améliore la clarté des contours à haut contraste et réduit le flou.\n"
"Utile quand la résolution d’entrée est basse comparée à l’écran du casque" "Utile quand la résolution d’entrée est basse comparée à l’écran du casque"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Temps CPU" msgstr "Temps CPU"
#: client/scenes/lobby_gui.cpp:1156 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Temps CPU [ms]" msgstr "Temps CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Temps GPU" msgstr "Temps GPU"
#: client/scenes/lobby_gui.cpp:1170 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Temps GPU [ms]" msgstr "Temps GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Activer le micro ?" msgstr "Activer le micro ?"
#: client/scenes/lobby_gui.cpp:1239 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Activer le suivi des yeux ?" msgstr "Activer le suivi des yeux ?"
#: client/scenes/lobby_gui.cpp:1244 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Activer le suivi du visage ?" msgstr "Activer le suivi du visage ?"
#: client/scenes/lobby_gui.cpp:1249 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Activer le suivi du corps ?" msgstr "Activer le suivi du corps ?"
#: client/scenes/lobby_gui.cpp:1257 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Bienvenue sur WiVRn" msgstr "Bienvenue sur WiVRn"
#: client/scenes/lobby_gui.cpp:1285 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Oui" msgstr "Oui"
#: client/scenes/lobby_gui.cpp:1292 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "Non" msgstr "Non"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licences" msgstr "Licences"
#: client/scenes/lobby_gui.cpp:1587 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Le micro est activé" msgstr "Le micro est activé"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Le micro est désactivé" msgstr "Le micro est désactivé"
#: client/scenes/lobby_gui.cpp:1597 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "Le suivi des mains est activé" msgstr "Le suivi des mains est activé"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "Le suivi des mains est désactivé" msgstr "Le suivi des mains est désactivé"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Le suivi des yeux est activé" msgstr "Le suivi des yeux est activé"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Le suivi des yeux est désactivé" msgstr "Le suivi des yeux est désactivé"
#: client/scenes/lobby_gui.cpp:1618 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Le suivi du visage est activé" msgstr "Le suivi du visage est activé"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Le suivi du visage est désactivé" msgstr "Le suivi du visage est désactivé"
#: client/scenes/lobby_gui.cpp:1633 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "Le suivi du corps est activé" msgstr "Le suivi du corps est activé"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "Le suivi du corps est désactivé" msgstr "Le suivi du corps est désactivé"
#: client/scenes/lobby_gui.cpp:1650 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Ajouter un serveur" msgstr "Ajouter un serveur"
#: client/scenes/lobby_gui.cpp:1936 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Serveurs" msgstr "Serveurs"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Paramètres" msgstr "Paramètres"
#: client/scenes/lobby_gui.cpp:1942 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-traitement" msgstr "Post-traitement"
#: client/scenes/lobby_gui.cpp:1945 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personnaliser" msgstr "Personnaliser"
#: client/scenes/lobby_gui.cpp:1949 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "À propos" msgstr "À propos"
#: client/scenes/lobby_gui.cpp:1960 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Quitter" msgstr "Quitter"
#: client/scenes/lobby_gui.cpp:1977 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -555,7 +565,7 @@ msgstr ""
"Serrez la gâchette latérale ou pointez la paume\n" "Serrez la gâchette latérale ou pointez la paume\n"
"vers le haut pour bouger la fenêtre principale" "vers le haut pour bouger la fenêtre principale"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale" msgstr "Serrez la gâchette latérale pour bouger la fenêtre principale"
@@ -634,56 +644,56 @@ msgstr "Télécharger plus d'environnements"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Ouvrir un modèle glTF local" msgstr "Ouvrir un modèle glTF local"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Défovéation" msgstr "Défovéation"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Réseau" msgstr "Réseau"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Téléchargement" msgstr "Téléchargement"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Téléversement" msgstr "Téléversement"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Décodeur {}" msgstr "Décodeur {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durées [ms]" msgstr "Durées [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Encodage" msgstr "Encodage"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Envoi" msgstr "Envoi"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Réception" msgstr "Réception"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Décodage" msgstr "Décodage"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Copie" msgstr "Copie"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Affichage" msgstr "Affichage"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Prédiction" msgstr "Prédiction"
@@ -692,102 +702,102 @@ msgstr "Prédiction"
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Latence mouvement à photons estimée : {} ms" msgstr "Latence mouvement à photons estimée : {} ms"
#: client/scenes/stream_gui.cpp:351 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Serrez la gâchette latérale pour bouger la fenêtre" msgstr "Serrez la gâchette latérale pour bouger la fenêtre"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn" msgstr "Appuyez sur les deux sticks pour afficher la fenêtre de WiVRn"
#: client/scenes/stream_gui.cpp:375 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latence mouvements à photons" msgstr "Latence mouvements à photons"
#: client/scenes/stream_gui.cpp:464 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Débit :" msgstr "Débit :"
#: client/scenes/stream_gui.cpp:474 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Cliquez pour modifier le débit" msgstr "Cliquez pour modifier le débit"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Zone de fovéation manuelle" msgstr "Zone de fovéation manuelle"
#: client/scenes/stream_gui.cpp:540 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Activer" msgstr "Activer"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Hauteur : {:.1f} deg" msgstr "Hauteur : {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distance {:.2f} m" msgstr "Distance {:.2f} m"
#: client/scenes/stream_gui.cpp:550 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Réinitialiser" msgstr "Réinitialiser"
#: client/scenes/stream_gui.cpp:561 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Ajuster" msgstr "Ajuster"
#: client/scenes/stream_gui.cpp:594 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Utilisez le stick droit pour modifier le débit" msgstr "Utilisez le stick droit pour modifier le débit"
#: client/scenes/stream_gui.cpp:595 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "Appuyez sur A pour revenir" msgstr "Appuyez sur A pour revenir"
#: client/scenes/stream_gui.cpp:596 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "Débit : {} MBit/s" msgstr "Débit : {} MBit/s"
#: client/scenes/stream_gui.cpp:618 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "Utiliser le stick pour bouger le centre de fovéation" msgstr "Utiliser le stick pour bouger le centre de fovéation"
#: client/scenes/stream_gui.cpp:619 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "A pour sauvegarder, B pour annuler" msgstr "A pour sauvegarder, B pour annuler"
#: client/scenes/stream_gui.cpp:677 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applications XR lancées :" msgstr "Applications XR lancées :"
#: client/scenes/stream_gui.cpp:694 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "Surcouches" msgstr "Surcouches"
#: client/scenes/stream_gui.cpp:733 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Demande de quitter, peut être ignoré par l'application" msgstr "Demande de quitter, peut être ignoré par l'application"
#: client/scenes/stream_gui.cpp:983 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Applications" msgstr "Applications"
#: client/scenes/stream_gui.cpp:986 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Démarrer" msgstr "Démarrer"
#: client/scenes/stream_gui.cpp:999 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Statistiques" msgstr "Statistiques"
#: client/scenes/stream_gui.cpp:1005 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Statistiques seules" msgstr "Statistiques seules"
#: client/scenes/stream_gui.cpp:1008 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Vue compacte" msgstr "Vue compacte"
+155 -145
View File
@@ -1,12 +1,12 @@
# #
# Albano Battistella <albanobattistella@gmail.com>, 2025. # Albano Battistella <albanobattistella@gmail.com>, 2025-2026.
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: WiVRn 0.15\n" "Project-Id-Version: WiVRn 0.15\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-12-29 15:36+0100\n" "POT-Creation-Date: 2026-02-27 16:09+0100\n"
"PO-Revision-Date: 2025-12-29 15:38+0100\n" "PO-Revision-Date: 2026-02-27 16:11+0100\n"
"Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n" "Last-Translator: Albano Battistella <albanobattistella@gmail.com>\n"
"Language-Team: Italian <>\n" "Language-Team: Italian <>\n"
"Language: Italian\n" "Language: Italian\n"
@@ -19,26 +19,26 @@ msgstr ""
msgid "No supported swapchain format" msgid "No supported swapchain format"
msgstr "Nessun formato swapchain supportato" msgstr "Nessun formato swapchain supportato"
#: client/scenes/app_launcher.cpp:128 #: client/scenes/app_launcher.cpp:127
msgid "Connected to WiVRn server" msgid "Connected to WiVRn server"
msgstr "Connesso al server WiVRn" msgstr "Connesso al server WiVRn"
#: client/scenes/app_launcher.cpp:130 #: client/scenes/app_launcher.cpp:129
#, c++-format #, c++-format
msgid "Connected to {}" msgid "Connected to {}"
msgstr "Connesso a {}" msgstr "Connesso a {}"
#: client/scenes/app_launcher.cpp:136 #: client/scenes/app_launcher.cpp:135
msgid "Start an application on the server to start streaming." msgid "Start an application on the server to start streaming."
msgstr "Avvia un applicazione sul server per incominciare a trasmettere." msgstr "Avvia un applicazione sul server per incominciare a trasmettere."
#: client/scenes/app_launcher.cpp:146 #: client/scenes/app_launcher.cpp:145
msgid "Start an application on your computer or select one to start streaming." msgid "Start an application on your computer or select one to start streaming."
msgstr "" msgstr ""
"Avvia un applicazione sul computer o scegli dalla lista per incominciare a " "Avvia un applicazione sul computer o scegli dalla lista per incominciare a "
"trasmettere." "trasmettere."
#: client/scenes/app_launcher.cpp:148 #: client/scenes/app_launcher.cpp:147
#, c++-format #, c++-format
msgid "Start an application on {} or select one to start streaming." msgid "Start an application on {} or select one to start streaming."
msgstr "" msgstr ""
@@ -68,11 +68,11 @@ msgstr "Impossibile connettersi a {} ({}): {}"
msgid "Waiting for connection" msgid "Waiting for connection"
msgstr "In attesa di connessione" msgstr "In attesa di connessione"
#: client/scenes/lobby.cpp:1319 #: client/scenes/lobby.cpp:1316
msgid "Passthrough" msgid "Passthrough"
msgstr "Vista reale" msgstr "Vista reale"
#: client/scenes/lobby.cpp:1331 #: client/scenes/lobby.cpp:1328
msgid "Default environment" msgid "Default environment"
msgstr "Ambiente di default" msgstr "Ambiente di default"
@@ -91,14 +91,15 @@ msgctxt "openxr_post_processing"
msgid "Disabled" msgid "Disabled"
msgstr "Disattivato" msgstr "Disattivato"
#: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:258 #: client/scenes/lobby_gui.cpp:114 client/scenes/lobby_gui.cpp:254
#: client/scenes/stream_gui.cpp:1015 #: client/scenes/stream_gui.cpp:1026
msgid "Disconnect" msgid "Disconnect"
msgstr "Sconnetti" msgstr "Sconnetti"
#: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui_customize.cpp:753 #: client/scenes/lobby_gui.cpp:134 client/scenes/lobby_gui.cpp:264
#: client/scenes/lobby_gui_customize.cpp:753
#: client/scenes/lobby_gui_customize.cpp:844 #: client/scenes/lobby_gui_customize.cpp:844
#: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1011 #: client/scenes/lobby_gui_customize.cpp:900 client/scenes/stream_gui.cpp:1022
msgid "Close" msgid "Close"
msgstr "Chiudi" msgstr "Chiudi"
@@ -119,32 +120,41 @@ msgstr "PIN"
msgid "Input the PIN displayed on the dashboard" msgid "Input the PIN displayed on the dashboard"
msgstr "Digitare il PIN visibile sul server" msgstr "Digitare il PIN visibile sul server"
#: client/scenes/lobby_gui.cpp:282
msgid "Disconnected"
msgstr "Connessione chiusa"
#: client/scenes/lobby_gui.cpp:284 #: client/scenes/lobby_gui.cpp:284
#, c++-format
msgid "Disconnected from {}"
msgstr "Connessione con {} chiusa"
#: client/scenes/lobby_gui.cpp:316
msgid "Name" msgid "Name"
msgstr "Nome" msgstr "Nome"
#: client/scenes/lobby_gui.cpp:295 #: client/scenes/lobby_gui.cpp:327
msgid "Address" msgid "Address"
msgstr "Indirizzo" msgstr "Indirizzo"
#: client/scenes/lobby_gui.cpp:304 #: client/scenes/lobby_gui.cpp:336
msgid "Port" msgid "Port"
msgstr "Porta" msgstr "Porta"
#: client/scenes/lobby_gui.cpp:312 #: client/scenes/lobby_gui.cpp:344
msgid "TCP only" msgid "TCP only"
msgstr "Solo TCP" msgstr "Solo TCP"
#: client/scenes/lobby_gui.cpp:319 client/scenes/lobby_gui_customize.cpp:655 #: client/scenes/lobby_gui.cpp:351 client/scenes/lobby_gui_customize.cpp:655
#: client/scenes/stream_gui.cpp:968 #: client/scenes/stream_gui.cpp:978
msgid "Cancel" msgid "Cancel"
msgstr "Annulla" msgstr "Annulla"
#: client/scenes/lobby_gui.cpp:333 #: client/scenes/lobby_gui.cpp:365
msgid "Save" msgid "Save"
msgstr "Salva" msgstr "Salva"
#: client/scenes/lobby_gui.cpp:386 #: client/scenes/lobby_gui.cpp:418
msgid "" msgid ""
"Start a WiVRn server on your\n" "Start a WiVRn server on your\n"
"local network" "local network"
@@ -152,46 +162,46 @@ msgstr ""
"Avvia un server WiVRn sulla\n" "Avvia un server WiVRn sulla\n"
"rete locale" "rete locale"
#: client/scenes/lobby_gui.cpp:418 #: client/scenes/lobby_gui.cpp:450
msgid "Autoconnect" msgid "Autoconnect"
msgstr "Connessione automatica" msgstr "Connessione automatica"
#: client/scenes/lobby_gui.cpp:444 #: client/scenes/lobby_gui.cpp:476
msgid "Connect" msgid "Connect"
msgstr "Connetti" msgstr "Connetti"
#: client/scenes/lobby_gui.cpp:454 client/wivrn_client.cpp:186 #: client/scenes/lobby_gui.cpp:486 client/wivrn_client.cpp:186
msgid "Incompatible server version" msgid "Incompatible server version"
msgstr "Versione del server incompatibile" msgstr "Versione del server incompatibile"
#: client/scenes/lobby_gui.cpp:456 #: client/scenes/lobby_gui.cpp:488
msgid "Server not available" msgid "Server not available"
msgstr "Server non disponibile" msgstr "Server non disponibile"
#: client/scenes/lobby_gui.cpp:538 #: client/scenes/lobby_gui.cpp:581
msgctxt "language selection, replace with the name of the language" msgctxt "language selection, replace with the name of the language"
msgid "English" msgid "English"
msgstr "Italiano" msgstr "Italiano"
#: client/scenes/lobby_gui.cpp:552 #: client/scenes/lobby_gui.cpp:595
msgid "Language" msgid "Language"
msgstr "Lingua" msgstr "Lingua"
#: client/scenes/lobby_gui.cpp:552 client/scenes/lobby_gui.cpp:554 #: client/scenes/lobby_gui.cpp:595 client/scenes/lobby_gui.cpp:597
msgid "System language" msgid "System language"
msgstr "Lingua del sistema" msgstr "Lingua del sistema"
#: client/scenes/lobby_gui.cpp:580 client/scenes/stream_gui.cpp:417 #: client/scenes/lobby_gui.cpp:623 client/scenes/stream_gui.cpp:412
msgid "Refresh rate" msgid "Refresh rate"
msgstr "Frequenza di aggiornamento" msgstr "Frequenza di aggiornamento"
#: client/scenes/lobby_gui.cpp:580 client/scenes/lobby_gui.cpp:582 #: client/scenes/lobby_gui.cpp:623 client/scenes/lobby_gui.cpp:625
#: client/scenes/stream_gui.cpp:417 client/scenes/stream_gui.cpp:419 #: client/scenes/stream_gui.cpp:412 client/scenes/stream_gui.cpp:414
msgctxt "automatic refresh rate" msgctxt "automatic refresh rate"
msgid "Automatic" msgid "Automatic"
msgstr "Automatica" msgstr "Automatica"
#: client/scenes/lobby_gui.cpp:589 client/scenes/stream_gui.cpp:427 #: client/scenes/lobby_gui.cpp:632 client/scenes/stream_gui.cpp:421
msgid "" msgid ""
"Select refresh rate based on measured application performance.\n" "Select refresh rate based on measured application performance.\n"
"May cause flicker when a change happens." "May cause flicker when a change happens."
@@ -200,39 +210,39 @@ msgstr ""
"misurate dell'applicazione.\n" "misurate dell'applicazione.\n"
"Può causare un flash quando avviene il cambiamento." "Può causare un flash quando avviene il cambiamento."
#: client/scenes/lobby_gui.cpp:606 client/scenes/stream_gui.cpp:445 #: client/scenes/lobby_gui.cpp:649 client/scenes/stream_gui.cpp:439
msgid "Minimum refresh rate" msgid "Minimum refresh rate"
msgstr "Frequenza minima" msgstr "Frequenza minima"
#: client/scenes/lobby_gui.cpp:632 #: client/scenes/lobby_gui.cpp:675
msgid "Foveation level" msgid "Foveation level"
msgstr "Intensità di foveazione" msgstr "Intensità di foveazione"
#: client/scenes/lobby_gui.cpp:655 #: client/scenes/lobby_gui.cpp:698
msgid "Render resolution" msgid "Render resolution"
msgstr "Risoluzione del gioco" msgstr "Risoluzione del gioco"
#: client/scenes/lobby_gui.cpp:659 #: client/scenes/lobby_gui.cpp:702
#, c-format, c++-format #, c-format, c++-format
msgid "{}%% - {}x{} per eye" msgid "{}%% - {}x{} per eye"
msgstr "{}%% - {}x{} per occhio" msgstr "{}%% - {}x{} per occhio"
#: client/scenes/lobby_gui.cpp:670 #: client/scenes/lobby_gui.cpp:713
#, c++-format #, c++-format
msgid "Resolution larger than {}x{} may not be supported by the headset" msgid "Resolution larger than {}x{} may not be supported by the headset"
msgstr "" msgstr ""
"Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore" "Le risoluzioni superiori a {}x{} potrebbero non essere supportate dal visore"
#: client/scenes/lobby_gui.cpp:680 #: client/scenes/lobby_gui.cpp:723
msgid "Foveated encoding" msgid "Foveated encoding"
msgstr "Foveazione della codifica" msgstr "Foveazione della codifica"
#: client/scenes/lobby_gui.cpp:684 #: client/scenes/lobby_gui.cpp:727
#, c-format, c++-format #, c-format, c++-format
msgid "{}%%" msgid "{}%%"
msgstr "{}%%" msgstr "{}%%"
#: client/scenes/lobby_gui.cpp:697 #: client/scenes/lobby_gui.cpp:740
msgid "" msgid ""
"Higher values focus image quality where you look at,\n" "Higher values focus image quality where you look at,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -240,7 +250,7 @@ msgstr ""
"Valori alti concentrano la qualità dove si guarda,\n" "Valori alti concentrano la qualità dove si guarda,\n"
"migliorando la latenza, efficienza energetica e qualità" "migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:700 #: client/scenes/lobby_gui.cpp:743
msgid "" msgid ""
"Higher values focus image quality at the center,\n" "Higher values focus image quality at the center,\n"
"improving latency, power efficiency and quality." "improving latency, power efficiency and quality."
@@ -248,88 +258,88 @@ msgstr ""
"Valori alti concentrano la qualità al centro dell'immagine,\n" "Valori alti concentrano la qualità al centro dell'immagine,\n"
"migliorando la latenza, efficienza energetica e qualità" "migliorando la latenza, efficienza energetica e qualità"
#: client/scenes/lobby_gui.cpp:709 #: client/scenes/lobby_gui.cpp:752
msgctxt "Codec" msgctxt "Codec"
msgid "Automatic" msgid "Automatic"
msgstr "Automatico" msgstr "Automatico"
#: client/scenes/lobby_gui.cpp:713 #: client/scenes/lobby_gui.cpp:756
msgctxt "Codec" msgctxt "Codec"
msgid "H.264" msgid "H.264"
msgstr "H.264" msgstr "H.264"
#: client/scenes/lobby_gui.cpp:715 #: client/scenes/lobby_gui.cpp:758
msgctxt "Codec" msgctxt "Codec"
msgid "H.265" msgid "H.265"
msgstr "H.265" msgstr "H.265"
#: client/scenes/lobby_gui.cpp:717 #: client/scenes/lobby_gui.cpp:760
msgctxt "Codec" msgctxt "Codec"
msgid "AV1" msgid "AV1"
msgstr "AV1" msgstr "AV1"
#: client/scenes/lobby_gui.cpp:725 #: client/scenes/lobby_gui.cpp:768
msgid "Codec" msgid "Codec"
msgstr "Codec" msgstr "Codec"
#: client/scenes/lobby_gui.cpp:753 #: client/scenes/lobby_gui.cpp:796
msgid "10-bit" msgid "10-bit"
msgstr "10 bit" msgstr "10 bit"
#: client/scenes/lobby_gui.cpp:768 #: client/scenes/lobby_gui.cpp:812
msgid "Bitrate" msgid "Bitrate"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/lobby_gui.cpp:772 #: client/scenes/lobby_gui.cpp:816
#, c++-format #, c++-format
msgid "{}Mbit/s" msgid "{}Mbit/s"
msgstr "{}Mbit/s" msgstr "{}Mbit/s"
#: client/scenes/lobby_gui.cpp:783 #: client/scenes/lobby_gui.cpp:827
msgid "High power mode" msgid "High power mode"
msgstr "Modalità alto consumo" msgstr "Modalità alto consumo"
#: client/scenes/lobby_gui.cpp:786 #: client/scenes/lobby_gui.cpp:830
msgid "Increase power usage to allow higher resolution and refresh rate" msgid "Increase power usage to allow higher resolution and refresh rate"
msgstr "" msgstr ""
"Aumenta il consumo di energie per permettere una risoluzione e\n" "Aumenta il consumo di energie per permettere una risoluzione e\n"
"frequenza d'immagine più alta" "frequenza d'immagine più alta"
#: client/scenes/lobby_gui.cpp:792 #: client/scenes/lobby_gui.cpp:836
msgid "Enable microphone" msgid "Enable microphone"
msgstr "Attiva il microfono" msgstr "Attiva il microfono"
#: client/scenes/lobby_gui.cpp:801 #: client/scenes/lobby_gui.cpp:845
msgid "Unprocessed Microphone Audio" msgid "Unprocessed Microphone Audio"
msgstr "Usare dati grezzi del microfono" msgstr "Usare dati grezzi del microfono"
#: client/scenes/lobby_gui.cpp:807 #: client/scenes/lobby_gui.cpp:851
msgid "Force disable audio filters, such as noise cancellation" msgid "Force disable audio filters, such as noise cancellation"
msgstr "Disattiva gli effetti come la cancellazione del rumore" msgstr "Disattiva gli effetti come la cancellazione del rumore"
#: client/scenes/lobby_gui.cpp:814 #: client/scenes/lobby_gui.cpp:858
msgid "Enable hand tracking" msgid "Enable hand tracking"
msgstr "Abilita il tracciamento delle mani" msgstr "Abilita il tracciamento delle mani"
#: client/scenes/lobby_gui.cpp:820 client/scenes/lobby_gui.cpp:831 #: client/scenes/lobby_gui.cpp:864 client/scenes/lobby_gui.cpp:875
#: client/scenes/lobby_gui.cpp:841 client/scenes/lobby_gui.cpp:856 #: client/scenes/lobby_gui.cpp:885 client/scenes/lobby_gui.cpp:900
#: client/scenes/lobby_gui_customize.cpp:640 #: client/scenes/lobby_gui_customize.cpp:640
msgid "This feature is not supported by your headset" msgid "This feature is not supported by your headset"
msgstr "Questa funzionalità non è supportata dal visore" msgstr "Questa funzionalità non è supportata dal visore"
#: client/scenes/lobby_gui.cpp:825 #: client/scenes/lobby_gui.cpp:869
msgid "Enable eye tracking" msgid "Enable eye tracking"
msgstr "Abilita il tracciamento oculare" msgstr "Abilita il tracciamento oculare"
#: client/scenes/lobby_gui.cpp:836 #: client/scenes/lobby_gui.cpp:880
msgid "Enable face tracking" msgid "Enable face tracking"
msgstr "Abilita il tracciamento facciale" msgstr "Abilita il tracciamento facciale"
#: client/scenes/lobby_gui.cpp:848 #: client/scenes/lobby_gui.cpp:892
msgid "Enable body tracking" msgid "Enable body tracking"
msgstr "Abilita il tracciamento del corpo" msgstr "Abilita il tracciamento del corpo"
#: client/scenes/lobby_gui.cpp:861 #: client/scenes/lobby_gui.cpp:905
msgid "" msgid ""
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
"tracking settings,\n" "tracking settings,\n"
@@ -342,11 +352,11 @@ msgstr ""
"controller e\n" "controller e\n"
"del visore." "del visore."
#: client/scenes/lobby_gui.cpp:871 #: client/scenes/lobby_gui.cpp:915
msgid "Enable lower body tracking" msgid "Enable lower body tracking"
msgstr "Abilita il tracciamento del basso del corpo" msgstr "Abilita il tracciamento del basso del corpo"
#: client/scenes/lobby_gui.cpp:877 #: client/scenes/lobby_gui.cpp:921
msgid "" msgid ""
"Estimate lower body joint positions using Generative Legs\n" "Estimate lower body joint positions using Generative Legs\n"
"Requires 'Hand and body tracking' to be enabled in the Quest movement " "Requires 'Hand and body tracking' to be enabled in the Quest movement "
@@ -357,11 +367,11 @@ msgstr ""
"impostazioni,\n" "impostazioni,\n"
"sezione \"Tracking dei movimenti\"." "sezione \"Tracking dei movimenti\"."
#: client/scenes/lobby_gui.cpp:880 #: client/scenes/lobby_gui.cpp:924
msgid "Enable hip tracking" msgid "Enable hip tracking"
msgstr "Abilitia il tracciamento delle anche" msgstr "Abilitia il tracciamento delle anche"
#: client/scenes/lobby_gui.cpp:886 #: client/scenes/lobby_gui.cpp:930
msgid "" msgid ""
"Only takes affect with lower body tracking enabled\n" "Only takes affect with lower body tracking enabled\n"
"May be desired when using another source of hip tracking" "May be desired when using another source of hip tracking"
@@ -370,11 +380,11 @@ msgstr ""
"Può essere utile se un altro metodo viene usato per il tracciamento\n" "Può essere utile se un altro metodo viene usato per il tracciamento\n"
"delle anche." "delle anche."
#: client/scenes/lobby_gui.cpp:895 #: client/scenes/lobby_gui.cpp:939
msgid "Enable in-stream window" msgid "Enable in-stream window"
msgstr "Attiva la finestra di WiVRn durante la trasmissione" msgstr "Attiva la finestra di WiVRn durante la trasmissione"
#: client/scenes/lobby_gui.cpp:898 #: client/scenes/lobby_gui.cpp:942
msgid "" msgid ""
"Enables the configuration window to be shown while the game is streaming.\n" "Enables the configuration window to be shown while the game is streaming.\n"
"If enabled, the window is activated by pressing both thumbsticks." "If enabled, the window is activated by pressing both thumbsticks."
@@ -382,23 +392,23 @@ msgstr ""
"Abilita la finestra di configurazione quando il gioco viene trasmesso.\n" "Abilita la finestra di configurazione quando il gioco viene trasmesso.\n"
"Se selezionato, la finestra può essere attivata premendo entrambi gli stick." "Se selezionato, la finestra può essere attivata premendo entrambi gli stick."
#: client/scenes/lobby_gui.cpp:902 #: client/scenes/lobby_gui.cpp:946
msgid "Extended configuration values" msgid "Extended configuration values"
msgstr "Valori di configurazione estesi" msgstr "Valori di configurazione estesi"
#: client/scenes/lobby_gui.cpp:905 #: client/scenes/lobby_gui.cpp:949
msgid "Allows unsafe configuration values, use at your own risk." msgid "Allows unsafe configuration values, use at your own risk."
msgstr "Permette di usare limiti più alti, può non funzionare correttamente." msgstr "Permette di usare limiti più alti, può non funzionare correttamente."
#: client/scenes/lobby_gui.cpp:919 client/scenes/stream_gui.cpp:479 #: client/scenes/lobby_gui.cpp:963 client/scenes/stream_gui.cpp:473
msgid "OpenXR post-processing" msgid "OpenXR post-processing"
msgstr "Post-trattamento OpenXR" msgstr "Post-trattamento OpenXR"
#: client/scenes/lobby_gui.cpp:923 client/scenes/stream_gui.cpp:483 #: client/scenes/lobby_gui.cpp:967 client/scenes/stream_gui.cpp:477
msgid "Supersampling" msgid "Supersampling"
msgstr "Supersamping" msgstr "Supersamping"
#: client/scenes/lobby_gui.cpp:943 client/scenes/stream_gui.cpp:504 #: client/scenes/lobby_gui.cpp:987 client/scenes/stream_gui.cpp:498
msgid "" msgid ""
"Reduce flicker for high contrast edges.\n" "Reduce flicker for high contrast edges.\n"
"Useful when the input resolution is high compared to the headset display" "Useful when the input resolution is high compared to the headset display"
@@ -406,11 +416,11 @@ msgstr ""
"Riduce i lampeggiamenti sui bordi ad alto contrasto.\n" "Riduce i lampeggiamenti sui bordi ad alto contrasto.\n"
"Utile quando la risoluzine d'entrata è alta in confronto a quella del visore" "Utile quando la risoluzine d'entrata è alta in confronto a quella del visore"
#: client/scenes/lobby_gui.cpp:948 client/scenes/stream_gui.cpp:509 #: client/scenes/lobby_gui.cpp:992 client/scenes/stream_gui.cpp:503
msgid "Sharpening" msgid "Sharpening"
msgstr "Miglioramento della nitidezza" msgstr "Miglioramento della nitidezza"
#: client/scenes/lobby_gui.cpp:968 client/scenes/stream_gui.cpp:530 #: client/scenes/lobby_gui.cpp:1012 client/scenes/stream_gui.cpp:524
msgid "" msgid ""
"Improve clarity of high contrast edges and counteract blur.\n" "Improve clarity of high contrast edges and counteract blur.\n"
"Useful when the input resolution is low compared to the headset display" "Useful when the input resolution is low compared to the headset display"
@@ -419,129 +429,129 @@ msgstr ""
"Utile quando la risoluzione d'entrate è bassa in contronto a quella del " "Utile quando la risoluzione d'entrate è bassa in contronto a quella del "
"visore" "visore"
#: client/scenes/lobby_gui.cpp:1152 client/scenes/lobby_gui.cpp:1160 #: client/scenes/lobby_gui.cpp:1196 client/scenes/lobby_gui.cpp:1204
#: client/scenes/stream_gui.cpp:172 client/scenes/stream_gui.cpp:373 #: client/scenes/stream_gui.cpp:173 client/scenes/stream_gui.cpp:371
msgid "CPU time" msgid "CPU time"
msgstr "Tempo CPU" msgstr "Tempo CPU"
#: client/scenes/lobby_gui.cpp:1156 #: client/scenes/lobby_gui.cpp:1200
msgid "CPU time [ms]" msgid "CPU time [ms]"
msgstr "Tempo CPU [ms]" msgstr "Tempo CPU [ms]"
#: client/scenes/lobby_gui.cpp:1166 client/scenes/lobby_gui.cpp:1174 #: client/scenes/lobby_gui.cpp:1210 client/scenes/lobby_gui.cpp:1218
#: client/scenes/stream_gui.cpp:174 client/scenes/stream_gui.cpp:374 #: client/scenes/stream_gui.cpp:175 client/scenes/stream_gui.cpp:372
msgid "GPU time" msgid "GPU time"
msgstr "Tempo GPU" msgstr "Tempo GPU"
#: client/scenes/lobby_gui.cpp:1170 #: client/scenes/lobby_gui.cpp:1214
msgid "GPU time [ms]" msgid "GPU time [ms]"
msgstr "Tempo GPU [ms]" msgstr "Tempo GPU [ms]"
#: client/scenes/lobby_gui.cpp:1234 #: client/scenes/lobby_gui.cpp:1278
msgid "Enable the microphone?" msgid "Enable the microphone?"
msgstr "Attivare il microfono?" msgstr "Attivare il microfono?"
#: client/scenes/lobby_gui.cpp:1239 #: client/scenes/lobby_gui.cpp:1283
msgid "Enable eye tracking?" msgid "Enable eye tracking?"
msgstr "Attivare il tracciamento oculare?" msgstr "Attivare il tracciamento oculare?"
#: client/scenes/lobby_gui.cpp:1244 #: client/scenes/lobby_gui.cpp:1288
msgid "Enable face tracking?" msgid "Enable face tracking?"
msgstr "Attivare il tracciamento facciale?" msgstr "Attivare il tracciamento facciale?"
#: client/scenes/lobby_gui.cpp:1249 #: client/scenes/lobby_gui.cpp:1293
msgid "Enable body tracking?" msgid "Enable body tracking?"
msgstr "Attivare il tracciamento del corpo?" msgstr "Attivare il tracciamento del corpo?"
#: client/scenes/lobby_gui.cpp:1257 #: client/scenes/lobby_gui.cpp:1301
msgid "Welcome to WiVRn" msgid "Welcome to WiVRn"
msgstr "Benvenuto su WiVRn" msgstr "Benvenuto su WiVRn"
#: client/scenes/lobby_gui.cpp:1285 #: client/scenes/lobby_gui.cpp:1329
msgid "Yes" msgid "Yes"
msgstr "Sì" msgstr "Sì"
#: client/scenes/lobby_gui.cpp:1292 #: client/scenes/lobby_gui.cpp:1336
msgid "No" msgid "No"
msgstr "No" msgstr "No"
#: client/scenes/lobby_gui.cpp:1311 client/scenes/lobby_gui.cpp:1957 #: client/scenes/lobby_gui.cpp:1355 client/scenes/lobby_gui.cpp:2001
msgid "Licenses" msgid "Licenses"
msgstr "Licenze" msgstr "Licenze"
#: client/scenes/lobby_gui.cpp:1587 #: client/scenes/lobby_gui.cpp:1631
msgid "Microphone is enabled" msgid "Microphone is enabled"
msgstr "Microfono attivo" msgstr "Microfono attivo"
#: client/scenes/lobby_gui.cpp:1588 #: client/scenes/lobby_gui.cpp:1632
msgid "Microphone is disabled" msgid "Microphone is disabled"
msgstr "Microfono disattivato" msgstr "Microfono disattivato"
#: client/scenes/lobby_gui.cpp:1597 #: client/scenes/lobby_gui.cpp:1641
msgid "Hand tracking is enabled" msgid "Hand tracking is enabled"
msgstr "Tracciamento delle mani attivo" msgstr "Tracciamento delle mani attivo"
#: client/scenes/lobby_gui.cpp:1598 #: client/scenes/lobby_gui.cpp:1642
msgid "Hand tracking is disabled" msgid "Hand tracking is disabled"
msgstr "Tracciamento delle mani disattivato" msgstr "Tracciamento delle mani disattivato"
#: client/scenes/lobby_gui.cpp:1607 #: client/scenes/lobby_gui.cpp:1651
msgid "Eye tracking is enabled" msgid "Eye tracking is enabled"
msgstr "Tracciamento oculare attivo" msgstr "Tracciamento oculare attivo"
#: client/scenes/lobby_gui.cpp:1608 #: client/scenes/lobby_gui.cpp:1652
msgid "Eye tracking is disabled" msgid "Eye tracking is disabled"
msgstr "Tracciamento oculare disattivato" msgstr "Tracciamento oculare disattivato"
#: client/scenes/lobby_gui.cpp:1618 #: client/scenes/lobby_gui.cpp:1662
msgid "Face tracking is enabled" msgid "Face tracking is enabled"
msgstr "Tracciamento facciale attivato" msgstr "Tracciamento facciale attivato"
#: client/scenes/lobby_gui.cpp:1619 #: client/scenes/lobby_gui.cpp:1663
msgid "Face tracking is disabled" msgid "Face tracking is disabled"
msgstr "Tracciamento facciale disattivato" msgstr "Tracciamento facciale disattivato"
#: client/scenes/lobby_gui.cpp:1633 #: client/scenes/lobby_gui.cpp:1677
msgid "Body tracking is enabled" msgid "Body tracking is enabled"
msgstr "Tracciamento del corpo attivato" msgstr "Tracciamento del corpo attivato"
#: client/scenes/lobby_gui.cpp:1634 #: client/scenes/lobby_gui.cpp:1678
msgid "Body tracking is disabled" msgid "Body tracking is disabled"
msgstr "Tracciamento del corpo disattivato" msgstr "Tracciamento del corpo disattivato"
#: client/scenes/lobby_gui.cpp:1650 #: client/scenes/lobby_gui.cpp:1694
msgid "Add server" msgid "Add server"
msgstr "Aggiungi server" msgstr "Aggiungi server"
#: client/scenes/lobby_gui.cpp:1936 #: client/scenes/lobby_gui.cpp:1980
msgid "Server list" msgid "Server list"
msgstr "Elenco dei server" msgstr "Elenco dei server"
#: client/scenes/lobby_gui.cpp:1939 client/scenes/stream_gui.cpp:996 #: client/scenes/lobby_gui.cpp:1983 client/scenes/stream_gui.cpp:1007
msgid "Settings" msgid "Settings"
msgstr "Impostazioni" msgstr "Impostazioni"
#: client/scenes/lobby_gui.cpp:1942 #: client/scenes/lobby_gui.cpp:1986
msgid "Post-processing" msgid "Post-processing"
msgstr "Post-trattamento" msgstr "Post-trattamento"
#: client/scenes/lobby_gui.cpp:1945 #: client/scenes/lobby_gui.cpp:1989
msgid "Customize" msgid "Customize"
msgstr "Personalizzazione" msgstr "Personalizzazione"
#: client/scenes/lobby_gui.cpp:1949 #: client/scenes/lobby_gui.cpp:1993
msgid "Debug" msgid "Debug"
msgstr "Debug" msgstr "Debug"
#: client/scenes/lobby_gui.cpp:1954 #: client/scenes/lobby_gui.cpp:1998
msgid "About" msgid "About"
msgstr "Informazioni" msgstr "Informazioni"
#: client/scenes/lobby_gui.cpp:1960 #: client/scenes/lobby_gui.cpp:2004
msgid "Exit" msgid "Exit"
msgstr "Esci" msgstr "Esci"
#: client/scenes/lobby_gui.cpp:1977 #: client/scenes/lobby_gui.cpp:2021
msgid "" msgid ""
"Press the grip button or put your palm up\n" "Press the grip button or put your palm up\n"
"to move the main window" "to move the main window"
@@ -549,7 +559,7 @@ msgstr ""
"Premi il pulsante laterale o punta il palmo della\n" "Premi il pulsante laterale o punta il palmo della\n"
"mano verso l'alto per spostare la finestra principale" "mano verso l'alto per spostare la finestra principale"
#: client/scenes/lobby_gui.cpp:1979 #: client/scenes/lobby_gui.cpp:2023
msgid "Press the grip button to move the main window" msgid "Press the grip button to move the main window"
msgstr "Premi il pulsante laterale per spostare la finestra principale" msgstr "Premi il pulsante laterale per spostare la finestra principale"
@@ -628,56 +638,56 @@ msgstr "Scaricare più ambienti"
msgid "Open local glTF model" msgid "Open local glTF model"
msgstr "Aprire un modello glTF" msgstr "Aprire un modello glTF"
#: client/scenes/stream_gui.cpp:174 #: client/scenes/stream_gui.cpp:175
msgid "Defoveate" msgid "Defoveate"
msgstr "Defoveazione" msgstr "Defoveazione"
#: client/scenes/stream_gui.cpp:176 #: client/scenes/stream_gui.cpp:177
msgid "Network" msgid "Network"
msgstr "Rete" msgstr "Rete"
#: client/scenes/stream_gui.cpp:176 client/scenes/stream_gui.cpp:371 #: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:369
msgid "Download" msgid "Download"
msgstr "Download" msgstr "Download"
#: client/scenes/stream_gui.cpp:177 client/scenes/stream_gui.cpp:372 #: client/scenes/stream_gui.cpp:178 client/scenes/stream_gui.cpp:370
msgid "Upload" msgid "Upload"
msgstr "Upload" msgstr "Upload"
#: client/scenes/stream_gui.cpp:246 #: client/scenes/stream_gui.cpp:247
#, c++-format #, c++-format
msgid "Decoder {}" msgid "Decoder {}"
msgstr "Decoder {}" msgstr "Decoder {}"
#: client/scenes/stream_gui.cpp:258 #: client/scenes/stream_gui.cpp:259
msgid "Timings [ms]" msgid "Timings [ms]"
msgstr "Durata [ms]" msgstr "Durata [ms]"
#: client/scenes/stream_gui.cpp:318 #: client/scenes/stream_gui.cpp:319
msgid "Encode" msgid "Encode"
msgstr "Compressione" msgstr "Compressione"
#: client/scenes/stream_gui.cpp:319 #: client/scenes/stream_gui.cpp:320
msgid "Send" msgid "Send"
msgstr "Invio" msgstr "Invio"
#: client/scenes/stream_gui.cpp:320 #: client/scenes/stream_gui.cpp:321
msgid "Receive" msgid "Receive"
msgstr "Ricezione" msgstr "Ricezione"
#: client/scenes/stream_gui.cpp:321 #: client/scenes/stream_gui.cpp:322
msgid "Decode" msgid "Decode"
msgstr "Decodifica" msgstr "Decodifica"
#: client/scenes/stream_gui.cpp:322 #: client/scenes/stream_gui.cpp:323
msgid "Blitted" msgid "Blitted"
msgstr "Copiato" msgstr "Copiato"
#: client/scenes/stream_gui.cpp:323 #: client/scenes/stream_gui.cpp:324
msgid "Displayed" msgid "Displayed"
msgstr "Visualizzato" msgstr "Visualizzato"
#: client/scenes/stream_gui.cpp:324 #: client/scenes/stream_gui.cpp:325
msgid "Predicted" msgid "Predicted"
msgstr "Previsto" msgstr "Previsto"
@@ -686,102 +696,102 @@ msgstr "Previsto"
msgid "Estimated motion to photons latency: {}ms" msgid "Estimated motion to photons latency: {}ms"
msgstr "Latenza stimata da movimento a fotoni: {}ms" msgstr "Latenza stimata da movimento a fotoni: {}ms"
#: client/scenes/stream_gui.cpp:351 #: client/scenes/stream_gui.cpp:349
msgid "Press the grip button to move the window" msgid "Press the grip button to move the window"
msgstr "Premi il pulsante laterale per spostare la finestra" msgstr "Premi il pulsante laterale per spostare la finestra"
#: client/scenes/stream_gui.cpp:353 client/scenes/stream_gui.cpp:924 #: client/scenes/stream_gui.cpp:351 client/scenes/stream_gui.cpp:738
msgid "Press both thumbsticks to display the WiVRn window" msgid "Press both thumbsticks to display the WiVRn window"
msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn" msgstr "Premi entrabli gli stick per mostrare la finestra di WiVRn"
#: client/scenes/stream_gui.cpp:375 #: client/scenes/stream_gui.cpp:373
msgid "Motion to photon latency" msgid "Motion to photon latency"
msgstr "Latenza da movimento a fotoni" msgstr "Latenza da movimento a fotoni"
#: client/scenes/stream_gui.cpp:464 #: client/scenes/stream_gui.cpp:458
msgid "Bitrate:" msgid "Bitrate:"
msgstr "Velocità di trasmissione" msgstr "Velocità di trasmissione"
#: client/scenes/stream_gui.cpp:474 #: client/scenes/stream_gui.cpp:468
msgid "Click to adjust bitrate" msgid "Click to adjust bitrate"
msgstr "Clicca per cambiare la velocità di trasmissione" msgstr "Clicca per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:537 #: client/scenes/stream_gui.cpp:532
msgid "Foveation center override" msgid "Foveation center override"
msgstr "Centro di foveazione manuale" msgstr "Centro di foveazione manuale"
#: client/scenes/stream_gui.cpp:540 #: client/scenes/stream_gui.cpp:535
msgid "Enable" msgid "Enable"
msgstr "Attiva" msgstr "Attiva"
#: client/scenes/stream_gui.cpp:548 client/scenes/stream_gui.cpp:620 #: client/scenes/stream_gui.cpp:543 client/scenes/stream_gui.cpp:614
#, c++-format #, c++-format
msgid "Height {:.1f} deg" msgid "Height {:.1f} deg"
msgstr "Altezza {:.1f} deg" msgstr "Altezza {:.1f} deg"
#: client/scenes/stream_gui.cpp:549 client/scenes/stream_gui.cpp:621 #: client/scenes/stream_gui.cpp:544 client/scenes/stream_gui.cpp:615
#, c++-format #, c++-format
msgid "Distance {:.2f} m" msgid "Distance {:.2f} m"
msgstr "Distanza {:.2f} m" msgstr "Distanza {:.2f} m"
#: client/scenes/stream_gui.cpp:550 #: client/scenes/stream_gui.cpp:545
msgid "Default" msgid "Default"
msgstr "Reimposta" msgstr "Reimposta"
#: client/scenes/stream_gui.cpp:561 #: client/scenes/stream_gui.cpp:556
msgid "Change" msgid "Change"
msgstr "Cambia" msgstr "Cambia"
#: client/scenes/stream_gui.cpp:594 #: client/scenes/stream_gui.cpp:588
msgid "Use the right thumbstick to adjust the bitrate" msgid "Use the right thumbstick to adjust the bitrate"
msgstr "Usa lo stick destro per cambiare la velocità di trasmissione" msgstr "Usa lo stick destro per cambiare la velocità di trasmissione"
#: client/scenes/stream_gui.cpp:595 #: client/scenes/stream_gui.cpp:589
msgid "Press A to go back" msgid "Press A to go back"
msgstr "Premi A per tornare indietro" msgstr "Premi A per tornare indietro"
#: client/scenes/stream_gui.cpp:596 #: client/scenes/stream_gui.cpp:590
#, c++-format #, c++-format
msgid "Bitrate: {}Mbit/s" msgid "Bitrate: {}Mbit/s"
msgstr "Velocità di trasmissione: {}Mbit/s" msgstr "Velocità di trasmissione: {}Mbit/s"
#: client/scenes/stream_gui.cpp:618 #: client/scenes/stream_gui.cpp:612
msgid "Use the thumbsticks to move the foveation center" msgid "Use the thumbsticks to move the foveation center"
msgstr "Usa gli stick per spostare il centro di foveazione" msgstr "Usa gli stick per spostare il centro di foveazione"
#: client/scenes/stream_gui.cpp:619 #: client/scenes/stream_gui.cpp:613
msgid "Press A to save or B to cancel" msgid "Press A to save or B to cancel"
msgstr "A per salvare, B per annullare" msgstr "A per salvare, B per annullare"
#: client/scenes/stream_gui.cpp:677 #: client/scenes/stream_gui.cpp:671
msgid "Running XR applications:" msgid "Running XR applications:"
msgstr "Applicazioni XR avviate:" msgstr "Applicazioni XR avviate:"
#: client/scenes/stream_gui.cpp:694 #: client/scenes/stream_gui.cpp:688
msgid "Overlays" msgid "Overlays"
msgstr "Overlays" msgstr "Overlays"
#: client/scenes/stream_gui.cpp:733 #: client/scenes/stream_gui.cpp:727
msgid "Request to quit, may be ignored by the application" msgid "Request to quit, may be ignored by the application"
msgstr "Chiede di chiudere, può essere ignorato dall'applicazione" msgstr "Chiede di chiudere, può essere ignorato dall'applicazione"
#: client/scenes/stream_gui.cpp:983 #: client/scenes/stream_gui.cpp:993
msgid "Applications" msgid "Applications"
msgstr "Applicazioni" msgstr "Applicazioni"
#: client/scenes/stream_gui.cpp:986 #: client/scenes/stream_gui.cpp:996
msgid "Start" msgid "Start"
msgstr "Avvio" msgstr "Avvio"
#: client/scenes/stream_gui.cpp:999 #: client/scenes/stream_gui.cpp:1010
msgid "Stats" msgid "Stats"
msgstr "Statistiche" msgstr "Statistiche"
#: client/scenes/stream_gui.cpp:1005 #: client/scenes/stream_gui.cpp:1016
msgid "Statistics overlay" msgid "Statistics overlay"
msgstr "Solo statistiche" msgstr "Solo statistiche"
#: client/scenes/stream_gui.cpp:1008 #: client/scenes/stream_gui.cpp:1019
msgid "Compact view" msgid "Compact view"
msgstr "Modalità compatta" msgstr "Modalità compatta"
@@ -1,4 +1,4 @@
From 3ec6ede2610ebbaa4ac6e9a76b387a2867db13a2 Mon Sep 17 00:00:00 2001 From 959707499b31f8db80f28492d1bfc01e34b23368 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid> From: no name <git-am@invalid>
Date: Thu, 15 Jan 2026 12:13:06 +0100 Date: Thu, 15 Jan 2026 12:13:06 +0100
Subject: [PATCH 8/9] Don't get pose data in compositor Subject: [PATCH 8/9] Don't get pose data in compositor
@@ -6,11 +6,11 @@ Subject: [PATCH 8/9] Don't get pose data in compositor
Reproject onto the first projection layer's pose, if there isn't any get Reproject onto the first projection layer's pose, if there isn't any get
it from device instead. it from device instead.
--- ---
src/xrt/compositor/main/comp_renderer.c | 51 +++++++++++++++++++++---- src/xrt/compositor/main/comp_renderer.c | 53 +++++++++++++++++++++----
1 file changed, 43 insertions(+), 8 deletions(-) 1 file changed, 45 insertions(+), 8 deletions(-)
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
index ff9728a59..1f01662b6 100644 index ff9728a59..4a91bbcd0 100644
--- a/src/xrt/compositor/main/comp_renderer.c --- a/src/xrt/compositor/main/comp_renderer.c
+++ b/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c
@@ -948,6 +948,24 @@ dispatch_graphics(struct comp_renderer *r, @@ -948,6 +948,24 @@ dispatch_graphics(struct comp_renderer *r,
@@ -38,7 +38,7 @@ index ff9728a59..1f01662b6 100644
/*! /*!
* @pre render_compute_init(render, &c->nr) * @pre render_compute_init(render, &c->nr)
*/ */
@@ -972,14 +990,31 @@ dispatch_compute(struct comp_renderer *r, @@ -972,14 +990,33 @@ dispatch_compute(struct comp_renderer *r,
struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS]; struct xrt_pose world_poses_scanout_begin[XRT_MAX_VIEWS];
struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS]; struct xrt_pose world_poses_scanout_end[XRT_MAX_VIEWS];
struct xrt_pose eye_poses[XRT_MAX_VIEWS]; struct xrt_pose eye_poses[XRT_MAX_VIEWS];
@@ -52,7 +52,9 @@ index ff9728a59..1f01662b6 100644
- render->r->view_count); // - render->r->view_count); //
+ if (!c->base.frame_params.one_projection_layer_fast_path) { + if (!c->base.frame_params.one_projection_layer_fast_path) {
+ struct comp_layer *proj_layer = get_projection_layer(&c->base.layer_accum); + struct comp_layer *proj_layer = get_projection_layer(&c->base.layer_accum);
+ if (proj_layer) { + int64_t predicted_display_time_ns = c->frame.rendering.predicted_display_time_ns;
+ int64_t cutoff_ns = 3 * c->frame_interval_ns;
+ if (proj_layer && llabs(predicted_display_time_ns - proj_layer->data.timestamp) <= cutoff_ns) {
+ struct xrt_layer_projection_view_data *data = proj_layer->data.proj.v; + struct xrt_layer_projection_view_data *data = proj_layer->data.proj.v;
+ // depth has the same first member as proj + // depth has the same first member as proj
+ for (int view = 0; view < XRT_MAX_VIEWS; ++view) { + for (int view = 0; view < XRT_MAX_VIEWS; ++view) {
+9 -2
View File
@@ -79,7 +79,8 @@ struct pipewire_device : public audio_device
static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error); static void mic_state_changed(void * self_v, pw_stream_state old, pw_stream_state state, const char * error);
void process_mic_data(wivrn::audio_data &&) override; void process_mic_data(wivrn::audio_data &&) override;
void on_connect() override; void pause() override;
void resume() override;
~pipewire_device() ~pipewire_device()
{ {
@@ -415,8 +416,14 @@ void pipewire_device::process_mic_data(wivrn::audio_data && sample)
if (mic_samples.write(std::move(sample))) if (mic_samples.write(std::move(sample)))
mic_buffer_size_bytes += size; mic_buffer_size_bytes += size;
} }
void pipewire_device::on_connect()
void pipewire_device::pause()
{ {
}
void pipewire_device::resume()
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING}); session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, mic_state == PW_STREAM_STATE_STREAMING});
} }
+7 -2
View File
@@ -404,9 +404,14 @@ struct pulse_device : public audio_device
mic_buffer.push(std::move(mic_data)); mic_buffer.push(std::move(mic_data));
} }
void on_connect() override void pause() override
{ {
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true}); }
void resume() override
{
session.send_control(description());
session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, (bool)microphone});
} }
pulse_device( pulse_device(
+3 -2
View File
@@ -34,9 +34,10 @@ struct audio_device
virtual ~audio_device() = default; virtual ~audio_device() = default;
virtual wivrn::to_headset::audio_stream_description description() const = 0; virtual wivrn::to_headset::audio_stream_description description() const = 0;
virtual void process_mic_data(wivrn::audio_data &&) = 0; virtual void process_mic_data(wivrn::audio_data &&) = 0;
virtual void on_connect() = 0;
virtual void pause() = 0;
virtual void resume() = 0;
static std::unique_ptr<audio_device> create( static std::unique_ptr<audio_device> create(
const std::string & source_name, const std::string & source_name,
+9 -2
View File
@@ -43,8 +43,15 @@ void wivrn::tracking_control::add_request(device_id device, XrTime now, XrTime a
if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device)) if (not std::ranges::contains(last_control.pattern, device, &to_headset::tracking_control::sample::device))
{ {
last_control.pattern.push_back({.device = device, .prediction_ns = prediction}); try
cnx.send_control(to_headset::tracking_control(last_control)); {
cnx.send_control(to_headset::tracking_control(last_control));
last_control.pattern.push_back({.device = device, .prediction_ns = prediction});
}
catch (...)
{
// ignore network errors
}
} }
} }
+29 -2
View File
@@ -523,7 +523,7 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
.pWaitDstStageMask = &wait_stage, .pWaitDstStageMask = &wait_stage,
}; };
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset()) if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset() or cn->skip_encoding)
{ {
scoped_lock lock(vk->main_queue->mutex); scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info); cn->wivrn_bundle->queue.submit(submit_info);
@@ -785,7 +785,15 @@ static xrt_result_t comp_wivrn_request_refresh_rate(struct comp_target * ct, flo
if (refresh_rate_hz == 0.0f) if (refresh_rate_hz == 0.0f)
refresh_rate_hz = get_default_rate(cn->cnx.get_info(), *cn->cnx.get_settings()); refresh_rate_hz = get_default_rate(cn->cnx.get_info(), *cn->cnx.get_settings());
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz}); try
{
cn->cnx.send_control(to_headset::refresh_rate_change{.fps = refresh_rate_hz});
}
catch (...)
{
// ignore network errors
}
return XRT_SUCCESS; return XRT_SUCCESS;
} }
@@ -827,6 +835,20 @@ void wivrn_comp_target::reset_encoders()
cnx.send_control(to_headset::video_stream_description{desc}); cnx.send_control(to_headset::video_stream_description{desc});
} }
void wivrn_comp_target::pause()
{
skip_encoding = true;
}
void wivrn_comp_target::resume()
{
if (!skip_encoding)
return;
reset_encoders();
skip_encoding = false;
}
void wivrn_comp_target::set_bitrate(uint32_t bitrate_bps) void wivrn_comp_target::set_bitrate(uint32_t bitrate_bps)
{ {
for (auto & encoder: encoders) for (auto & encoder: encoders)
@@ -847,6 +869,11 @@ void wivrn_comp_target::set_refresh_rate(float refresh_rate_hz)
encoder->set_framerate(refresh_rate_hz); encoder->set_framerate(refresh_rate_hz);
} }
float wivrn_comp_target::get_refresh_rate()
{
return desc.fps;
}
wivrn_comp_target::wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c) : wivrn_comp_target::wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c) :
comp_target{ comp_target{
.c = c, .c = c,
+6 -1
View File
@@ -101,15 +101,20 @@ struct wivrn_comp_target : public comp_target
std::optional<wivrn_foveation> foveation; std::optional<wivrn_foveation> foveation;
std::atomic<float> requested_refresh_rate; std::atomic<float> requested_refresh_rate;
std::atomic<bool> skip_encoding;
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c); wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c);
~wivrn_comp_target(); ~wivrn_comp_target();
void on_feedback(const from_headset::feedback &, const clock_offset &); void on_feedback(const from_headset::feedback &, const clock_offset &);
void reset_encoders(); void reset_encoders();
void set_bitrate(uint32_t bitrate_bps);
void pause();
void resume();
void set_bitrate(uint32_t bitrate_bps);
void set_refresh_rate(float); void set_refresh_rate(float);
float get_refresh_rate();
}; };
inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings) inline float get_default_rate(const from_headset::headset_info_packet & info, const from_headset::settings_changed & settings)
+265 -79
View File
@@ -55,6 +55,7 @@
#include <magic_enum.hpp> #include <magic_enum.hpp>
#include <stdexcept> #include <stdexcept>
#include <string.h> #include <string.h>
#include <utility>
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE #if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
@@ -127,6 +128,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
.destroy = [](xrt_system_devices * self) { delete ((wivrn_session *)self); }, .destroy = [](xrt_system_devices * self) { delete ((wivrn_session *)self); },
}, },
connection(std::move(connection)), connection(std::move(connection)),
headset_info(this->connection->info()),
xrt_system(system), xrt_system(system),
control(*this->connection), control(*this->connection),
hmd(this, get_info()), hmd(this, get_info()),
@@ -145,11 +147,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
"WiVRn", "WiVRn",
get_info(), get_info(),
*this); *this);
if (audio_handle)
{
send_control(audio_handle->description());
audio_handle->on_connect();
}
} }
catch (const std::exception & e) catch (const std::exception & e)
{ {
@@ -157,12 +154,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
throw; throw;
} }
(*this)(from_headset::get_application_list{
.language = get_info().language,
.country = get_info().country,
.variant = get_info().variant,
});
static_roles.head = xdevs[xdev_count++] = &hmd; static_roles.head = xdevs[xdev_count++] = &hmd;
if (hmd.supported.face_tracking) if (hmd.supported.face_tracking)
@@ -290,7 +281,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
try try
{ {
uinput_handler.emplace(); uinput_handler.emplace();
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
} }
catch (...) catch (...)
{ {
@@ -392,7 +382,7 @@ void wivrn_session::start(ipc_server * server)
assert(not net_thread.joinable()); assert(not net_thread.joinable());
mnd_ipc_server = server; mnd_ipc_server = server;
net_thread = std::jthread([this](auto stop_token) { return run_net(stop_token); }); net_thread = std::jthread([this](auto stop_token) { return run_net(stop_token); });
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); }); resume_session();
} }
void wivrn_session::stop() void wivrn_session::stop()
@@ -410,6 +400,85 @@ bool wivrn_session::request_stop()
return b; return b;
} }
void wivrn_session::pause_session()
{
assert(mnd_ipc_server);
// notify clients about session pause
update_client_states(false, false);
if (get_info().user_presence)
{
(*this)(from_headset::user_presence_changed{
.present = false,
});
}
// pause session components
worker_thread = std::jthread();
offset_est.reset();
if (audio_handle)
audio_handle->pause();
{
std::shared_lock lock(comp_target_mutex);
if (comp_target)
comp_target->pause();
}
}
void wivrn_session::resume_session()
{
assert(mnd_ipc_server);
// reset session components and send descriptor packets to headset
if (audio_handle)
audio_handle->resume();
if (uinput_handler)
send_control(to_headset::feature_control{to_headset::feature_control::hid_input, true});
{
std::shared_lock lock(comp_target_mutex);
if (comp_target)
{
float target_fps = get_default_rate(get_info(), *get_settings());
if (target_fps != comp_target->get_refresh_rate())
{
(*this)(from_headset::refresh_rate_changed{
.from = comp_target->get_refresh_rate(),
.to = target_fps,
});
}
comp_target->resume();
}
}
if (get_info().user_presence)
{
(*this)(from_headset::user_presence_changed{
.present = true,
});
}
(*this)(from_headset::get_application_list{
.language = get_info().language,
.country = get_info().country,
.variant = get_info().variant,
});
// resume session and notify clients
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); });
update_client_states(true, true);
}
clock_offset wivrn_session::get_offset() clock_offset wivrn_session::get_offset()
{ {
return offset_est.get_offset(); return offset_est.get_offset();
@@ -715,7 +784,6 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
void wivrn_session::operator()(from_headset::session_state_changed && event) void wivrn_session::operator()(from_headset::session_state_changed && event)
{ {
assert(mnd_ipc_server);
U_LOG_I("Session state changed: %s", xr::to_string(event.state)); U_LOG_I("Session state changed: %s", xr::to_string(event.state));
bool visible, focused; bool visible, focused;
switch (event.state) switch (event.state)
@@ -733,22 +801,8 @@ void wivrn_session::operator()(from_headset::session_state_changed && event)
focused = false; focused = false;
break; break;
} }
scoped_lock lock(mnd_ipc_server->global_state.lock);
auto locked = session_loss.lock(); update_client_states(visible, focused);
for (auto & t: mnd_ipc_server->threads)
{
auto id = t.ics.client_state.id;
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
continue;
bool current = t.ics.client_state.session_overlay or
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
t.ics.client_state.info.application_name,
visible ? "true" : "false",
focused ? "true" : "false",
current ? "true" : "false");
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
}
} }
void wivrn_session::operator()(from_headset::user_presence_changed && event) void wivrn_session::operator()(from_headset::user_presence_changed && event)
{ {
@@ -984,17 +1038,29 @@ void wivrn_session::run_net(std::stop_token stop)
} }
catch (const std::exception & e) catch (const std::exception & e)
{ {
U_LOG_E("Exception in network thread: %s", e.what()); U_LOG_W("Exception in network thread: %s, Session paused.", e.what());
worker_thread = std::jthread(); pause_session();
reconnect(stop); reconnect(stop);
worker_thread = std::jthread([this](std::stop_token stop) { return run_worker(stop); }); if (stop.stop_requested())
break;
try
{
resume_session();
U_LOG_I("Headset connected, Session resumed.");
}
catch (const std::exception & e)
{
U_LOG_E("Exception on session resume: %s", e.what());
}
} }
} }
} }
void wivrn_session::run_worker(std::stop_token stop) void wivrn_session::run_worker(std::stop_token stop)
{ {
refresh_rate_adjuster refresh(connection->info(), settings, app_pacers); refresh_rate_adjuster refresh(get_info(), settings, app_pacers);
while (not stop.stop_requested()) while (not stop.stop_requested())
{ {
try try
@@ -1066,62 +1132,182 @@ void wivrn_session::quit_if_no_client()
} }
} }
static bool is_audio_changed(const from_headset::headset_info_packet & prev_info, const from_headset::headset_info_packet & info)
{
bool changed = false;
if (prev_info.speaker and info.speaker)
{
changed |= prev_info.speaker->num_channels != info.speaker->num_channels;
changed |= prev_info.speaker->sample_rate != info.speaker->sample_rate;
}
if (prev_info.microphone and info.microphone)
{
changed |= prev_info.microphone->num_channels != info.microphone->num_channels;
changed |= prev_info.microphone->sample_rate != info.microphone->sample_rate;
}
return changed;
}
std::pair<bool, std::optional<std::string>> wivrn_session::validate_headset_info(const from_headset::headset_info_packet & info)
{
const auto & prev_info = get_info();
bool refuse = false; // refuse to connect headset outright
bool warn = false; // allow headset but display a pop-up warning about outdated settings
// stream settings
{
warn |= prev_info.render_eye_width != info.render_eye_width;
warn |= prev_info.render_eye_height != info.render_eye_height;
warn |= prev_info.stream_eye_width != info.stream_eye_width;
warn |= prev_info.stream_eye_height != info.stream_eye_height;
refuse |= prev_info.supported_codecs != info.supported_codecs;
refuse |= prev_info.bit_depth != info.bit_depth;
if (refuse)
{
return std::make_pair(false, "video codec mismatch.");
}
}
// audio settings
{
refuse |= is_audio_changed(prev_info, info);
warn |= (bool)prev_info.speaker != (bool)info.speaker;
warn |= (bool)prev_info.microphone != (bool)info.microphone;
if (refuse)
{
return std::make_pair(false, "audio config changed.");
}
}
// headset features
{
// allow toggling some features but changes won't be visible to applications
warn |= prev_info.hand_tracking != info.hand_tracking;
warn |= prev_info.face_tracking != info.face_tracking;
warn |= prev_info.eye_gaze != info.eye_gaze;
warn |= prev_info.num_generic_trackers != info.num_generic_trackers;
// only allow connecting from the "same" headset
refuse |= prev_info.system_name != info.system_name;
for (uint32_t i = 0; i < 2; i++)
{
refuse |= prev_info.fov[i].angleDown != info.fov[i].angleDown;
refuse |= prev_info.fov[i].angleUp != info.fov[i].angleUp;
refuse |= prev_info.fov[i].angleRight != info.fov[i].angleRight;
refuse |= prev_info.fov[i].angleLeft != info.fov[i].angleLeft;
}
refuse |= prev_info.palm_pose != info.palm_pose;
refuse |= prev_info.user_presence != info.user_presence;
refuse |= prev_info.passthrough != info.passthrough;
refuse |= prev_info.available_refresh_rates != info.available_refresh_rates;
if (refuse)
{
std::make_pair(false, "headset features changed.");
}
}
return std::make_pair(warn, std::nullopt);
}
void wivrn_session::reconnect(std::stop_token stop) void wivrn_session::reconnect(std::stop_token stop)
{ {
assert(mnd_ipc_server); assert(mnd_ipc_server);
// Notify clients about disconnected status
xrt_session_event event{
.state = {
.type = XRT_SESSION_EVENT_STATE_CHANGE,
.visible = false,
.focused = false,
},
};
auto result = push_event(event);
if (result != XRT_SUCCESS)
{
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
}
U_LOG_I("Waiting for new connection"); U_LOG_I("Waiting for new connection");
auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
if (stop.stop_requested()) while (not stop.stop_requested())
return;
if (not tcp)
{ {
request_stop(); try
return;
}
try
{
offset_est.reset();
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
const auto & info = connection->info();
(*this)(info.settings);
{ {
std::shared_lock lock(comp_target_mutex); // await a new headset connection
if (comp_target)
comp_target->reset_encoders(); auto tcp = accept_connection(*this, stop, &wivrn_session::quit_if_no_client);
if (stop.stop_requested())
return;
if (not tcp)
{
request_stop();
return;
}
connection->reset(stop, std::move(*tcp), [this]() { quit_if_no_client(); });
// validate if headset is compatible with the current session
const auto & info = connection->info();
const auto [warn_conn, refuse_conn] = validate_headset_info(info);
// TODO: add server-side localization
if (refuse_conn)
{
send_control(to_headset::server_message{
.kind = to_headset::server_message::kind::error,
.msg = std::format("Headset incompatible with session: {}", *refuse_conn),
});
connection->shutdown();
throw std::runtime_error("headset config incompatible with current session");
}
if (warn_conn)
{
send_control(to_headset::server_message{
.kind = to_headset::server_message::kind::toast_urgent,
.msg = "Stream resumed with outdated settings. Restart the server for settings to apply.",
});
U_LOG_W("Session resumed with outdated settings. Restart the server for settings to apply.");
}
// update headset info
headset_info.settings = info.settings;
(*this)(headset_info.settings);
headset_info.language = info.language;
headset_info.country = info.country;
headset_info.variant = info.variant;
break;
} }
if (audio_handle) catch (std::exception & e)
{ {
send_control(audio_handle->description()); U_LOG_W("Exception while connecting headset: %s", e.what());
audio_handle->on_connect();
}
event.state.visible = true;
event.state.focused = true;
result = push_event(event);
if (result != XRT_SUCCESS)
{
U_LOG_W("Failed to notify session state change: %s", xrt_result_to_string(result).c_str());
} }
} }
catch (const std::exception & e) }
void wivrn_session::update_client_states(bool visible, bool focused)
{
assert(mnd_ipc_server);
scoped_lock lock(mnd_ipc_server->global_state.lock);
auto locked = session_loss.lock();
for (auto & t: mnd_ipc_server->threads)
{ {
U_LOG_E("Reconnection failed: %s", e.what()); auto id = t.ics.client_state.id;
if (t.ics.server_thread_index < 0 or t.ics.xc == nullptr or locked->contains(id))
continue;
bool current = t.ics.client_state.session_overlay or
mnd_ipc_server->global_state.active_client_index == t.ics.server_thread_index;
U_LOG_D("Setting session state for app %s: visible=%s focused=%s current=%s",
t.ics.client_state.info.application_name,
visible ? "true" : "false",
focused ? "true" : "false",
current ? "true" : "false");
xrt_syscomp_set_state(system_compositor, t.ics.xc, visible and current, focused and current, os_monotonic_get_ns());
} }
} }
+9 -1
View File
@@ -66,6 +66,7 @@ class wivrn_session : public xrt_system_devices
{ {
friend wivrn_comp_target_factory; friend wivrn_comp_target_factory;
std::unique_ptr<wivrn_connection> connection; std::unique_ptr<wivrn_connection> connection;
from_headset::headset_info_packet headset_info;
pacing_app_factory app_pacers; pacing_app_factory app_pacers;
u_system & xrt_system; u_system & xrt_system;
@@ -140,7 +141,7 @@ public:
bool connected(); bool connected();
const from_headset::headset_info_packet & get_info() const const from_headset::headset_info_packet & get_info() const
{ {
return connection->info(); return headset_info;
}; };
locked<from_headset::settings_changed> get_settings() locked<from_headset::settings_changed> get_settings()
@@ -216,8 +217,15 @@ private:
void run_worker(std::stop_token stop); void run_worker(std::stop_token stop);
void reconnect(std::stop_token stop); void reconnect(std::stop_token stop);
void pause_session();
void resume_session();
void update_client_states(bool visible, bool focused);
void poll_session_loss(); void poll_session_loss();
// checks if a headset is usable with this session
std::pair<bool, std::optional<std::string>> validate_headset_info(const from_headset::headset_info_packet & info);
// xrt_system implementation // xrt_system implementation
xrt_result_t get_roles(xrt_system_roles * out_roles); xrt_result_t get_roles(xrt_system_roles * out_roles);
xrt_result_t feature_inc(xrt_device_feature_type type); xrt_result_t feature_inc(xrt_device_feature_type type);
+9
View File
@@ -657,6 +657,15 @@ gboolean on_handle_rename_key(WivrnServer * skeleton, GDBusMethodInvocation * in
gboolean on_handle_enable_pairing(WivrnServer * skeleton, GDBusMethodInvocation * invocation, gpointer user_data) gboolean on_handle_enable_pairing(WivrnServer * skeleton, GDBusMethodInvocation * invocation, gpointer user_data)
{ {
bool server_running = server_watch != 0 or connection_thread;
if (server_running)
{
std::cerr << "Cannot enable pairing while session is active." << pin << std::endl;
g_dbus_method_invocation_return_value(invocation, g_variant_new("(s)", ""));
return G_SOURCE_CONTINUE;
}
set_encryption_state(wivrn_connection::encryption_state::pairing); set_encryption_state(wivrn_connection::encryption_state::pairing);
if (pairing_timeout) if (pairing_timeout)
+7
View File
@@ -20,6 +20,7 @@
#include <chrono> #include <chrono>
#include <format> #include <format>
#include <ranges> #include <ranges>
#include <string_view>
#include <systemd/sd-bus.h> #include <systemd/sd-bus.h>
#include <type_traits> #include <type_traits>
@@ -196,6 +197,12 @@ void pair(int duration)
if (ret < 0) if (ret < 0)
throw std::system_error(-ret, std::system_category(), "Failed to read PIN"); throw std::system_error(-ret, std::system_category(), "Failed to read PIN");
if (std::string_view(pin) == "")
{
std::cout << "Cannot enable pairing while session is active." << pin << std::endl;
return;
}
std::cout << "PIN: " << pin << std::endl; std::cout << "PIN: " << pin << std::endl;
} }
} }