Control the tracking loop from server side

On server side, collect each tracking request, create an explicit pattern
describing how the client shall execute them.
This commit is contained in:
Patrick Nicolas
2026-01-29 09:51:52 +01:00
parent 0a71756024
commit fc01002317
28 changed files with 523 additions and 556 deletions
+2 -2
View File
@@ -354,10 +354,10 @@ void pipewire_device::mic_state_changed(void * self_v, pw_stream_state old, pw_s
case PW_STREAM_STATE_UNCONNECTED:
case PW_STREAM_STATE_CONNECTING:
case PW_STREAM_STATE_PAUSED:
self->session.set_enabled(to_headset::tracking_control::id::microphone, false);
self->session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, false});
return;
case PW_STREAM_STATE_STREAMING:
self->session.set_enabled(to_headset::tracking_control::id::microphone, true);
self->session.send_control(to_headset::feature_control{to_headset::feature_control::microphone, true});
return;
}
}