summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-24 20:07:52 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-24 20:07:52 -0400
commit883dd1fa7c3fa1cde131071bfabf757f04ce13de (patch)
tree0572b6f95d2f8198b495a7e6f7f47181e4f9334a
parent19f21f3f07d80f5bf9845bd6fd04c7d9122b46b2 (diff)
use Resample Method = peaks to ignore other volume control apps
-rw-r--r--src/model/pulsemodel.cpp4
1 files 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<PulseModel *>(userdata);
TQApplication::postEvent( self, new PAEvent(
PAEvent::DeviceAdded, AudioDevice::Recording, info->index,