Change refresh rate and bitrate on connect
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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 &);
|
||||||
|
|||||||
Reference in New Issue
Block a user