Skip to content

Commit 47a789f

Browse files
committed
Log when the node is driving the graph
Useful for debugging.
1 parent 2eac5f1 commit 47a789f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pipewire/qubes-pw-module.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,14 @@ static int process_control_commands(struct impl *impl)
688688

689689
pw_log_trace("Audio playback %s", new_state ? "started" : "stopped");
690690

691+
#if QUBES_PW_CAN_DRIVE
692+
if (new_state && pw_stream_is_driving(playback_stream->stream)) {
693+
// If *either* stream is driving, use the playback vchan to drive
694+
// the graph. Specifically, drive the graph when there is enough
695+
// space in the playback vchan for a cycle.
696+
pw_log_trace("Qubes OS playback node is driving");
697+
}
698+
#endif
691699
rt_set_stream_state(playback_stream, new_state);
692700
}
693701

@@ -707,6 +715,11 @@ static int process_control_commands(struct impl *impl)
707715

708716
pw_log_trace("Audio capturing %s", new_state ? "started" : "stopped");
709717

718+
#if QUBES_PW_CAN_DRIVE
719+
if (new_state && pw_stream_is_driving(capture_stream->stream)) {
720+
pw_log_trace("Qubes OS capture node is driving");
721+
}
722+
#endif
710723
rt_set_stream_state(capture_stream, new_state);
711724
}
712725

0 commit comments

Comments
 (0)