From 883dd1fa7c3fa1cde131071bfabf757f04ce13de Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Sun, 24 May 2026 20:07:52 -0400 Subject: use Resample Method = peaks to ignore other volume control apps --- src/model/pulsemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/model/pulsemodel.cpp b/src/model/pulsemodel.cpp index 4e73473..25d3dfe 100644 --- a/src/model/pulsemodel.cpp +++ b/src/model/pulsemodel.cpp @@ -378,8 +378,8 @@ 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 our own peak-monitor streams. - if ( info->name && strcmp(info->name, "tmix-peak") == 0 ) return; + // Filter out peak-monitor streams (ours and other apps like pavucontrol). + if ( info->resample_method && strcmp(info->resample_method, "peaks") == 0 ) return; PulseModel *self = static_cast(userdata); TQApplication::postEvent( self, new PAEvent( PAEvent::DeviceAdded, AudioDevice::Recording, info->index, -- cgit v1.2.3