pw-cat: add channel-map option and option to delay connect

If the target node is set to 0, remove the autoconnect flag. This makes
the session manager disable stream autoconnect and some other program
needs to connect the stream to a sink or node.

Use the channelmap from the file, if available.

Add option to specify/override the channel map for playback.
This commit is contained in:
Wim Taymans 2020-02-04 11:45:45 +01:00
parent 272fd4bd9f
commit 1cce9a69c8
2 changed files with 171 additions and 11 deletions

View file

@ -180,7 +180,8 @@ static int setup_convert(struct impl *this)
continue;
this->remap[i] = j;
outformat.info.raw.position[j] = -1;
spa_log_debug(this->log, NAME " %p: channel %d -> %d", this, i, j);
spa_log_debug(this->log, NAME " %p: channel %d -> %d (%d)", this,
i, j, informat.info.raw.position[i]);
break;
}
}