mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
port: use right properties
Use format.dsp as a key to mark the dsp format on a port Use audio.channel as the key to set the audio channel on a port
This commit is contained in:
parent
3ad73f0532
commit
a680f434d2
7 changed files with 8 additions and 9 deletions
|
|
@ -139,8 +139,8 @@ static void emit_port_info(struct impl *this, struct port *port, bool full)
|
|||
uint32_t n_items = 0;
|
||||
|
||||
if (PORT_IS_DSP(port->direction, port->id)) {
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT("port.dsp", "32 bit float mono audio");
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT("port.channel", port->position);
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT("format.dsp", "32 bit float mono audio");
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT("audio.channel", port->position);
|
||||
if (port->direction == SPA_DIRECTION_OUTPUT)
|
||||
items[n_items++] = SPA_DICT_ITEM_INIT("port.monitor", "1");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue