Allow changing refresh rate during stream

This commit is contained in:
Sapphire
2025-11-11 22:09:04 +01:00
committed by xytovl
parent 68f6bf5e48
commit 015b242e27
8 changed files with 102 additions and 23 deletions
+10
View File
@@ -221,6 +221,8 @@ struct headset_info_packet
uint32_t recommended_eye_height;
std::vector<float> available_refresh_rates;
float preferred_refresh_rate;
// for automatic
float minimum_refresh_rate;
struct audio_description
{
uint8_t num_channels;
@@ -245,6 +247,13 @@ struct headset_info_packet
std::string variant;
};
struct settings_changed
{
float preferred_refresh_rate;
// for automatic
float minimum_refresh_rate;
};
struct handshake
{
// Sending this on TCP means connection will be TCP only
@@ -519,6 +528,7 @@ using packets = std::variant<
pin_check_1,
pin_check_3,
headset_info_packet,
settings_changed,
feedback,
audio_data,
handshake,