Add back unused-variable warning
This commit is contained in:
@@ -105,7 +105,6 @@ struct pipewire_device : public audio_device
|
||||
// Calculate quantum size: 5ms buffer for low latency while maintaining stability
|
||||
// Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency
|
||||
uint32_t quantum_size = (desc.speaker->sample_rate * 5) / 1000;
|
||||
uint32_t frame_size = desc.speaker->num_channels * sizeof(int16_t);
|
||||
|
||||
std::string rate_str = std::format("1/{}", desc.speaker->sample_rate);
|
||||
std::string latency_str = std::format("{}/{}", quantum_size, desc.speaker->sample_rate);
|
||||
@@ -185,7 +184,6 @@ struct pipewire_device : public audio_device
|
||||
// Calculate quantum size: 5ms buffer for low latency while maintaining stability
|
||||
// Smaller buffers (<5ms) risk underruns, larger ones (>10ms) add perceptible latency
|
||||
uint32_t quantum_size = (desc.microphone->sample_rate * 5) / 1000;
|
||||
uint32_t frame_size = desc.microphone->num_channels * sizeof(int16_t);
|
||||
|
||||
std::string rate_str = std::format("1/{}", desc.microphone->sample_rate);
|
||||
std::string latency_str = std::format("{}/{}", quantum_size, desc.microphone->sample_rate);
|
||||
|
||||
@@ -494,7 +494,7 @@ xrt_result_t compositor::layer_commit(xrt_graphics_sync_handle_t sync_handle)
|
||||
info.frame_id);
|
||||
}
|
||||
|
||||
auto j = encode_request.exchange(i);
|
||||
[[maybe_unused]] auto j = encode_request.exchange(i);
|
||||
encode_request.notify_all();
|
||||
assert(j == -1);
|
||||
|
||||
|
||||
@@ -594,7 +594,6 @@ std::array<to_headset::foveation_parameter, 2> foveation::foveate(
|
||||
bool alpha)
|
||||
{
|
||||
update_ubo(cmd, flip_y, src_rect, src_fov);
|
||||
auto ubo = gpu_buffer.data<ubo_data>();
|
||||
|
||||
std::array src_image_info{
|
||||
vk::DescriptorImageInfo{
|
||||
|
||||
@@ -157,7 +157,6 @@ void pacer::on_feedback(const wivrn::from_headset::feedback & feedback, const cl
|
||||
if (d < 0)
|
||||
d += frame_duration_ns;
|
||||
d -= frame_duration_ns / 2;
|
||||
auto l = last_ns;
|
||||
last_ns += d / 10;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,6 @@ xrt_space_relation pose_list::extrapolate(const xrt_space_relation & a, const xr
|
||||
|
||||
float dt = (t - tb) / 1.e9;
|
||||
|
||||
float dt2_over_2 = dt * dt / 2;
|
||||
res.pose.position = res.pose.position + lin_vel * dt;
|
||||
|
||||
if (res.relation_flags & XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT)
|
||||
|
||||
@@ -197,7 +197,6 @@ void body_joints_list::update_tracking(const wivrn::from_headset::meta_body & tr
|
||||
|
||||
if (auto it = parent.virtual_trackers.find(joint); it != parent.virtual_trackers.cend())
|
||||
{
|
||||
const auto body_part = parent.joint_body_parts.at(joint);
|
||||
auto & tracker = it->second;
|
||||
|
||||
// Quest reports VALID bit not TRACKED bit, make sure TRACKED is set when VALID
|
||||
@@ -240,7 +239,6 @@ void body_joints_list::update_tracking(const wivrn::from_headset::bd_body & trac
|
||||
|
||||
if (auto it = parent.virtual_trackers.find(joint); it != parent.virtual_trackers.cend())
|
||||
{
|
||||
const auto body_part = parent.joint_body_parts.at(joint);
|
||||
auto & tracker = it->second;
|
||||
tracker.update_tracking(tracking.production_timestamp, tracking.timestamp, pose, offset);
|
||||
}
|
||||
|
||||
@@ -831,6 +831,10 @@ void wivrn_session::operator()(from_headset::visibility_mask_changed && mask)
|
||||
},
|
||||
};
|
||||
auto result = xrt_session_event_sink_push(&xrt_system.broadcast, &event);
|
||||
if (result != XRT_SUCCESS)
|
||||
{
|
||||
U_LOG_W("failed to push visibility mask changed event");
|
||||
}
|
||||
}
|
||||
|
||||
void wivrn_session::operator()(from_headset::session_state_changed && event)
|
||||
|
||||
@@ -53,7 +53,6 @@ xrt_result_t instance::create_system(
|
||||
auto u_sys = b_system_create();
|
||||
*out_xsys = &u_sys->base;
|
||||
|
||||
struct xrt_system_compositor * xsysc = NULL;
|
||||
auto res = wivrn::wivrn_session::create_session(
|
||||
std::move(connection),
|
||||
*u_sys,
|
||||
|
||||
@@ -289,8 +289,6 @@ wivrn::vk_bundle::vk_bundle() :
|
||||
device_extensions.push_back(*it);
|
||||
}
|
||||
|
||||
float prio = 1.0;
|
||||
|
||||
std::vector<vk::DeviceQueueCreateInfo> queues_info;
|
||||
int queue_index = get_queue_index(queues, queues_info, queue.family_index);
|
||||
U_LOG_D("queue index: %d", queue_index);
|
||||
|
||||
Reference in New Issue
Block a user