From 4c9dd31005405aa0a32e36e4b500d773da9a1264 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Mon, 25 May 2026 21:02:03 -0400 Subject: ignore pipewire peak monitor as well as pulse ones --- src/model/pulsemodel.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/model') diff --git a/src/model/pulsemodel.cpp b/src/model/pulsemodel.cpp index 25d3dfe..a7962b0 100644 --- a/src/model/pulsemodel.cpp +++ b/src/model/pulsemodel.cpp @@ -378,8 +378,13 @@ void PulseModel::sinkInputInfoCb( pa_context *, const pa_sink_input_info *info, void PulseModel::sourceOutputInfoCb( pa_context *, const pa_source_output_info *info, int eol, void *userdata ) { if ( eol || !info ) return; - // Filter out peak-monitor streams (ours and other apps like pavucontrol). + // Filter peak-monitor streams. PulseAudio sets resample_method="peaks"; PipeWire + // sets the proplist key resample.peaks="true" instead. if ( info->resample_method && strcmp(info->resample_method, "peaks") == 0 ) return; + if ( info->proplist ) { + const char *v = pa_proplist_gets( info->proplist, "resample.peaks" ); + if ( v && strcmp(v, "true") == 0 ) return; + } PulseModel *self = static_cast(userdata); TQApplication::postEvent( self, new PAEvent( PAEvent::DeviceAdded, AudioDevice::Recording, info->index, -- cgit v1.2.3