mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
channelmix: use the right channelmap
For merger setup (consuming a source) we want to expose the channelmap of the remixed signal (to the application/sink). For splitter setup (providing data) we want to expose the channelmap of the original source (before remixing to sink). Hide the merge channel props because they contain the channelmap before mising and we want to expose the remixed signal in merger mode. This fixes some weird volume issues when an input stream is linked to a source and is remixing, like when a stereo stream is captured from a mono source.
This commit is contained in:
parent
0b7da17083
commit
ac25d126de
2 changed files with 13 additions and 2 deletions
|
|
@ -386,10 +386,13 @@ static int impl_node_enum_params(void *object, int seq,
|
|||
|
||||
case SPA_PARAM_Props:
|
||||
{
|
||||
#if 0
|
||||
struct props *p = &this->props;
|
||||
struct spa_pod_frame f[2];
|
||||
#endif
|
||||
|
||||
switch (result.index) {
|
||||
#if 0
|
||||
case 0:
|
||||
spa_pod_builder_push_object(&b, &f[0],
|
||||
SPA_TYPE_OBJECT_Props, id);
|
||||
|
|
@ -422,6 +425,7 @@ static int impl_node_enum_params(void *object, int seq,
|
|||
spa_pod_builder_pop(&b, &f[1]);
|
||||
param = spa_pod_builder_pop(&b, &f[0]);
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue