stream: normalize volumes when monitoring

This commit is contained in:
Wim Taymans 2020-10-07 12:45:28 +02:00
parent 9054cfcd8b
commit 5c048500cc
2 changed files with 11 additions and 0 deletions

View file

@ -1534,6 +1534,7 @@ pw_stream_connect(struct pw_stream *stream,
if ((str = pw_properties_get(props, PW_KEY_STREAM_MONITOR)) &&
pw_properties_parse_bool(str)) {
pw_properties_set(props, "resample.peaks", "true");
pw_properties_set(props, "channelmix.normalize", "true");
}
follower = pw_context_create_node(impl->context, pw_properties_copy(props), 0);