diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/pulsemodel.cpp | 7 |
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, |
