mixer - ignore Peak detect named out src from pavucontrol

pavucontrol does the same thing e and emixer do - monitor
input/recording sources to show a vu meter to show current input
levels when appropriate. ignore these as they are not actually
recording audio - just monitoring them and thus from a user experience
point of view probably should be ignored.
This commit is contained in:
Carsten Haitzler 2023-03-07 08:00:51 +00:00
parent ef788779f9
commit 0c6b0645bd
1 changed files with 4 additions and 1 deletions

View File

@ -779,7 +779,10 @@ _source_output_cb(pa_context *c EINA_UNUSED, const pa_source_output_info *info,
if (eol > 0)
return;
if ((info->name) && (!strcmp(info->name, "__e_mon"))) return;
if ((info->name) &&
((!strcmp(info->name, "__e_mon")) ||
(!strcmp(info->name, "Peak detect"))))
return;
output = calloc(1, sizeof(Source_Output));
EINA_SAFETY_ON_NULL_RETURN(output);