Use a separate packet for refresh rate change

This commit is contained in:
Patrick Nicolas
2025-01-07 23:42:11 +01:00
parent d6649b0052
commit a434094055
10 changed files with 70 additions and 56 deletions
+12
View File
@@ -69,6 +69,18 @@ void scenes::stream::operator()(to_headset::video_stream_description && desc)
}
}
void scenes::stream::operator()(to_headset::refresh_rate_change && rate)
{
try
{
session.set_refresh_rate(rate.fps);
}
catch (std::exception & e)
{
spdlog::warn("Failed to set refresh rate to {}: {}", rate.fps, e.what());
}
}
void scenes::stream::operator()(to_headset::timesync_query && query)
{
network_session->send_stream(from_headset::timesync_response{