Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/wirehose/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,18 @@ pub fn capture_node(
*pipewire::keys::TARGET_OBJECT => String::from(serial),
*pipewire::keys::STREAM_MONITOR => "true",
*pipewire::keys::NODE_NAME => "wiremix-capture",
// wireplumber's state-stream.lua persists volume/mute/target to disk
// (~/.local/state/wireplumber/stream-properties) for any node whose
// media.class matches "Stream/*", which this capture stream does by
// default. That's real per-event disk I/O (write+fsync+rename,
// debounced but still frequent) for a purely internal metering tap
// that has no volume/mute/target of its own worth remembering -
// these two properties are wireplumber's own opt-out mechanism
// (checked directly in state-stream.lua before any of that work
// happens), and eliminate the cost entirely rather than just
// reducing how many capture streams exist at once.
"state.restore-props" => "false",
"state.restore-target" => "false",
};
if capture_sink {
props.insert(*pipewire::keys::STREAM_CAPTURE_SINK, "true");
Expand Down
Loading