Wim Taymans
b5a7a1f224
module-netjack2: improve port names
...
Let the default port logic make the port names. For network nodes this
will be with a send/recv prefix.
2024-07-19 11:42:51 +02:00
Wim Taymans
c73b56db38
fix compilation
2024-07-18 14:24:53 +02:00
Wim Taymans
280bbd88d4
modules: don't unload module on stream error
...
Unloading the module on stream errors is a bit too much because a
suspend can clear the stream error again (or the error might not be
fatal)
This can happen for example when negotiation fails on some stream ports
(wireplumber tries to link the midi ports to audio ports) and it's
better to not completely fail on that.
Fixes #4121
2024-07-18 14:15:22 +02:00
Wim Taymans
c3d4abd7f1
modules: use acquire/release loop
...
Expose the acquire_loop/release_loop functions and use them in the
modules.
Make sure the nodes created from the module use the same data loop as
the module. We need to ensure this because otherwise, the nodes might
be scheduled on different data loops and the invoke or timer logic will
fail.
2024-04-22 16:19:02 +02:00
Wim Taymans
c0966f026a
modules: prefix network-utils methods with pw_net
2024-02-26 15:17:48 +01:00
dsee
4888b35284
Support IPv6 link-local addresses
...
Use `getaddrinfo` in `parse_address` instead of `inet_pton`.
Display Ipv6 addresses with scope identifiers correctly in `get_ip`
functions using `if_indextoname`.
2024-02-25 18:20:54 +00:00
Gleb Popov
4ea02f5c80
Fix building module-netjack2 on FreeBSD
2024-02-10 20:52:15 +03:00
Wim Taymans
d0a2e6316b
spa: small cleanups
...
Initialize result variable.
Use strncpy to avoid warnings about using non-NULL terminaded strings.
2024-01-10 15:51:01 +01:00
Pauli Virtanen
fdcb02ed75
modules: add Module Name section to the module reference docs
2023-11-20 08:41:13 +00:00
Pauli Virtanen
eca773fc12
modules: strip "PipeWire Module:" from Doxygen page name
...
Make them appear nicer in the output.
2023-11-19 16:39:15 +00:00
Wim Taymans
4bb3e292c5
netjack2: remove hardcoded buffer size
2023-10-13 13:40:22 +02:00
Wim Taymans
b094057b0b
handle NULL latency param
...
Fixes #3504
2023-09-13 11:13:48 +02:00
Wim Taymans
5e2a7dbc4e
modules: remove include of private.h
...
Remove some includes of private.h
Add some methods to get the mempool of client and context so that we can
remove direct access.
Move some things around.
Use methods to get pw_loop variables.
See #3243
2023-07-11 19:31:27 +02:00
Barnabás Pőcze
12be42ed6b
pipewire: module-netjack2-manager: remove unused module_schedule_destroy()
2023-07-03 19:40:31 +02:00
Wim Taymans
da86c2030c
module-netjack2: improve OPUS fallback
2023-06-12 18:37:47 +02:00
Wim Taymans
fb63bb3c5c
module-netjack2: start follower after START message
2023-06-12 17:56:20 +02:00
Wim Taymans
19f3e422e1
module-netjack2: add int support
2023-06-12 17:01:13 +02:00
Wim Taymans
8dfb22d12b
module-netjack2: add opus support
2023-06-12 11:44:50 +02:00
Wim Taymans
4bf526ddf4
module-netjack2: handle NULL socket
...
The socket might be NULL when it got destroyed due to an error.
2023-06-09 20:49:27 +02:00
Wim Taymans
9dd5bab535
module-netjack2: add MIDI send and receive
2023-06-08 16:38:53 +02:00
Wim Taymans
04e17a8b1c
module-netjack2: handle driver reconnect
...
Let the driver keep announcing.
Keep track of when a message was received in the driver. If we don't
receive anything for a while, reconnect.
Don't connect twide in the manager.
2023-06-05 13:30:16 +02:00
Wim Taymans
a70a89289b
module-netjack2: fix driver name
2023-06-05 10:36:30 +02:00
Wim Taymans
f2a0df9ac2
module-netjack2: lock and force rate and quantum
2023-06-05 10:36:08 +02:00
Wim Taymans
407ee3940c
module-netjack2: set latency param
2023-06-05 10:21:18 +02:00
Wim Taymans
cc82715325
module-netjack2: refactor
...
Move common code to a separate file.
2023-06-05 10:20:43 +02:00
Wim Taymans
7bd74a67f4
module-netjack2: use frames from graph and sync
...
The params are the initial period_size, use the ones used to
encode the packets.
2023-06-02 15:43:34 +02:00
Wim Taymans
629e322fac
module-netjack2: clear empty buffers
2023-06-02 15:09:31 +02:00
Wim Taymans
287566937e
module-netjack2: improve node names
2023-06-02 13:31:38 +02:00
Wim Taymans
2988d9c831
module-netjack2: small improvements
...
Improve node properties
Improve module parameters and docs
Send send and recv buffer sizes.
Stop follower on connection errors.
2023-06-02 13:24:49 +02:00
Wim Taymans
9727bf3c4b
modules: fix some compiler warnings
2023-06-01 19:01:25 +02:00
Wim Taymans
2cc0fe0b3c
module-netjack2: add netjack2 manager
...
This module listens for messages from netjack2 drivers and makes a sink
and source filter to send and receive data from the remote driver.
2023-06-01 18:36:07 +02:00