Change refresh rate and bitrate on connect

This commit is contained in:
Sapphire
2025-12-31 00:59:36 -06:00
parent 205c84b273
commit 416297f232
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -448,7 +448,7 @@ void wivrn_session::operator()(from_headset::headset_info_packet &&)
U_LOG_W("unexpected headset info packet, ignoring"); U_LOG_W("unexpected headset info packet, ignoring");
} }
void wivrn_session::operator()(from_headset::settings_changed && settings) void wivrn_session::operator()(const from_headset::settings_changed & settings)
{ {
*this->settings.lock() = settings; *this->settings.lock() = settings;
@@ -1124,8 +1124,8 @@ void wivrn_session::reconnect()
throw no_client_connected{}; throw no_client_connected{};
}); });
// const auto & info = connection->info(); const auto & info = connection->info();
// FIXME: ensure new client is compatible (*this)(info.settings);
{ {
std::shared_lock lock(comp_target_mutex); std::shared_lock lock(comp_target_mutex);
+1 -1
View File
@@ -195,7 +195,7 @@ public:
void operator()(from_headset::pin_check_1 &&) {} void operator()(from_headset::pin_check_1 &&) {}
void operator()(from_headset::pin_check_3 &&) {} void operator()(from_headset::pin_check_3 &&) {}
void operator()(from_headset::headset_info_packet &&); void operator()(from_headset::headset_info_packet &&);
void operator()(from_headset::settings_changed &&); void operator()(const from_headset::settings_changed &);
void operator()(from_headset::handshake &&) {} void operator()(from_headset::handshake &&) {}
void operator()(from_headset::trackings &&); void operator()(from_headset::trackings &&);
void operator()(const from_headset::tracking &); void operator()(const from_headset::tracking &);