mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
examples: add capture from monitor option
This commit is contained in:
parent
8de03f5c29
commit
9755cb9083
1 changed files with 4 additions and 0 deletions
|
|
@ -166,6 +166,10 @@ int main(int argc, char *argv[])
|
|||
if (argc > 1)
|
||||
/* Set stream target if given on command line */
|
||||
pw_properties_set(props, PW_KEY_TARGET_OBJECT, argv[1]);
|
||||
|
||||
/* uncomment if you want to capture from the sink monitor ports */
|
||||
/* pw_properties_set(props, PW_KEY_STREAM_CAPTURE_SINK, "true"); */
|
||||
|
||||
data.stream = pw_stream_new_simple(
|
||||
pw_main_loop_get_loop(data.loop),
|
||||
"audio-capture",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue