mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
examples: use PW_KEY_TARGET_OBJECT
In examples, tell people how to use target.object.
This commit is contained in:
parent
de65fd442f
commit
ca87d40448
16 changed files with 94 additions and 65 deletions
|
|
@ -118,8 +118,8 @@ Now we're ready to connect the stream and run the main loop:
|
|||
pw_main_loop_run(data.loop);
|
||||
\endcode
|
||||
|
||||
To connect we specify that we have a `PW_DIRECTION_OUTPUT` stream. `PW_ID_ANY`
|
||||
means that we are ok with connecting to any consumer. Next we set some flags:
|
||||
To connect we specify that we have a `PW_DIRECTION_OUTPUT` stream. The third argument
|
||||
is always `PW_ID_ANY`. Next we set some flags:
|
||||
|
||||
- `PW_STREAM_FLAG_AUTOCONNECT`: Automatically connect this stream. This instructs
|
||||
the session manager to link us to some consumer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue