configure bitrate on client only
This commit is contained in:
+13
-22
@@ -216,6 +216,15 @@ enum face_type : uint8_t
|
||||
htc,
|
||||
};
|
||||
|
||||
struct settings_changed
|
||||
{
|
||||
float preferred_refresh_rate;
|
||||
// for automatic
|
||||
float minimum_refresh_rate;
|
||||
|
||||
uint32_t bitrate_bps;
|
||||
};
|
||||
|
||||
struct headset_info_packet
|
||||
{
|
||||
uint16_t render_eye_width;
|
||||
@@ -223,9 +232,10 @@ struct headset_info_packet
|
||||
uint16_t stream_eye_width;
|
||||
uint16_t stream_eye_height;
|
||||
std::vector<float> available_refresh_rates;
|
||||
float preferred_refresh_rate;
|
||||
// for automatic
|
||||
float minimum_refresh_rate;
|
||||
|
||||
// runtime configurable settings
|
||||
settings_changed settings;
|
||||
|
||||
struct audio_description
|
||||
{
|
||||
uint8_t num_channels;
|
||||
@@ -251,18 +261,6 @@ struct headset_info_packet
|
||||
std::string variant;
|
||||
};
|
||||
|
||||
struct settings_request
|
||||
{};
|
||||
|
||||
struct settings_changed
|
||||
{
|
||||
float preferred_refresh_rate;
|
||||
// for automatic
|
||||
float minimum_refresh_rate;
|
||||
|
||||
uint32_t bitrate_bps;
|
||||
};
|
||||
|
||||
struct handshake
|
||||
{
|
||||
// Sending this on TCP means connection will be TCP only
|
||||
@@ -550,7 +548,6 @@ using packets = std::variant<
|
||||
pin_check_1,
|
||||
pin_check_3,
|
||||
headset_info_packet,
|
||||
settings_request,
|
||||
settings_changed,
|
||||
feedback,
|
||||
audio_data,
|
||||
@@ -733,11 +730,6 @@ struct tracking_control
|
||||
std::array<bool, size_t(id::last) + 1> enabled;
|
||||
};
|
||||
|
||||
struct settings
|
||||
{
|
||||
uint32_t bitrate_bps;
|
||||
};
|
||||
|
||||
struct refresh_rate_change
|
||||
{
|
||||
float fps;
|
||||
@@ -786,7 +778,6 @@ using packets = std::variant<
|
||||
haptics,
|
||||
timesync_query,
|
||||
tracking_control,
|
||||
settings,
|
||||
refresh_rate_change,
|
||||
application_list,
|
||||
application_icon,
|
||||
|
||||
Reference in New Issue
Block a user