summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-25 21:02:03 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-25 21:02:03 -0400
commit4c9dd31005405aa0a32e36e4b500d773da9a1264 (patch)
tree8107973724361a07441d85c5e7eeb94f081c13f9
parentccff0eb51fa2ae2b94d2a6297f45519a12e07def (diff)
ignore pipewire peak monitor as well as pulse ones
-rw-r--r--src/model/pulsemodel.cpp7
1 files changed, 6 insertions, 1 deletions
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<PulseModel *>(userdata);
TQApplication::postEvent( self, new PAEvent(
PAEvent::DeviceAdded, AudioDevice::Recording, info->index,