Commit graph

3806 commits

Author SHA1 Message Date
Wim Taymans
1a27d7da1d interfaces: remove core permissions
Use the client update_permissions call instead
2019-01-10 11:09:05 +01:00
Wim Taymans
505eb7a423 protocol: automatically bind to the client as well
Bind to the client as well as the remote core. This way we will be
able to update our properties and permissions directly on the client.
2019-01-10 11:01:30 +01:00
Wim Taymans
77651881f7 improve debug 2019-01-10 11:00:50 +01:00
Wim Taymans
2f6c85cda1 remote: buffer id is now just the index of the buffer
Buffer id is only used internally as the index of the buffer
that was given to us by use_buffer or alloc_buffer
2019-01-10 10:20:26 +01:00
Wim Taymans
66bab1d9b2 remote: remove some events
Remove some events from the remote that we can find on the core_proxy.
Use the core_proxy to get to the done and info events.
Remove pw_remote_get_core_info(), we don't need this anymore now that
we don't listen for the event and the user can keep track of this
herself.
2019-01-10 10:08:14 +01:00
Wim Taymans
349a11cde5 add const to info 2019-01-09 17:49:45 +01:00
Wim Taymans
8fa6126599 rtkit: improve DISABLE_RTKIT
DISABLE_RTKIT should not even try to get the dbus connection or
anything.
2019-01-09 11:24:48 +01:00
Wim Taymans
714178b1e4 meson: add module dir directory for tests 2019-01-09 10:54:56 +01:00
Wim Taymans
69b7c18718 tests: add more tests 2019-01-09 10:48:18 +01:00
Wim Taymans
23c439fd66 meson: set spa plugin dir 2019-01-08 17:56:20 +01:00
Wim Taymans
b5a7891ee1 tests: add more tests 2019-01-08 17:38:34 +01:00
Wim Taymans
1ed27a8f2b add _GNU_SOURCE as compiler flag 2019-01-08 17:36:58 +01:00
Wim Taymans
57e0a94163 add const to info changes 2019-01-08 17:34:32 +01:00
Wim Taymans
979d155382 core: add user_data to core 2019-01-08 17:32:37 +01:00
Wim Taymans
fb5ae6df43 tests: add array test 2019-01-08 13:40:41 +01:00
Wim Taymans
e23deae087 meson: install permission.h header 2019-01-08 13:00:48 +01:00
Wim Taymans
2c571cddf5 tests: add c++ include test 2019-01-08 13:00:24 +01:00
Wim Taymans
d12148cfba graph: remove scheduler2
Move graph code into graph.h
2019-01-08 11:56:44 +01:00
Wim Taymans
b0f4be5fbc fix more compile errors
Avoid void * arithmetic
Do explicit casts to target type to make c++ happy
2019-01-08 11:53:36 +01:00
Wim Taymans
5b7ddb0105 buffer: remove buffer id
The buffer id is not needed/used, we use the index of the buffer in the
buffer array when configuring the port.
2019-01-07 17:57:03 +01:00
Wim Taymans
e918f9f77c fix sign confusion 2019-01-07 15:52:42 +01:00
Wim Taymans
74e5f9fbcf fix function types 2019-01-07 15:48:06 +01:00
Wim Taymans
098b80aa0c protocol: pass state as id 2019-01-07 15:39:59 +01:00
Wim Taymans
de796d34ad pod: handle pod copy failure
Don't check NULL in pw_spa_pod_copy so that we can check for allocation
failures when the functions returns NULL.
2019-01-07 15:36:19 +01:00
Wim Taymans
7cd55c2c6b fix switch fallthrough cases 2019-01-07 15:11:34 +01:00
Wim Taymans
9573b24e52 cpu: add force cpu flags
Use PIPEWIRE_CPU to force cpu flags.
2019-01-07 15:02:18 +01:00
Wim Taymans
1ca7704d64 type-info: fully initialize structs 2019-01-07 13:56:08 +01:00
Jan Grulich
238be61364 Avoid invalid conversion error with C++ compilators 2019-01-03 11:13:08 +01:00
Wim Taymans
0c0bf3a62a thread-loop: fix leak of event
Destroy the event when the loop is destroyed
2018-12-20 10:36:20 +01:00
Wim Taymans
52a3a0c175 thread-loop: improve error checking 2018-12-20 10:36:14 +01:00
Wim Taymans
0984096089 free() can handle NULL just fine so skip the check
Fixes #117
2018-12-19 17:47:25 +01:00
Wim Taymans
a1e567b985 stream: remove listener on disconnect 2018-12-18 15:35:04 +01:00
Wim Taymans
6430ca0093 Add some more error checking
Fixes #116
2018-12-18 15:26:08 +01:00
Wim Taymans
e984c19f6c core: load and add cpu detection support 2018-12-17 13:26:04 +01:00
Wim Taymans
3be759ced2 stream: handle proxy destroy
When the proxy is destroyed, mark the stream as unconnected and remove
our reference to the proxy.
2018-12-14 16:38:46 +01:00
Wim Taymans
2025a9ad3b node: only move other nodes, not ourselves 2018-12-14 16:37:15 +01:00
Wim Taymans
4be368c957 media-session: handle dont-reconnect
If dont-reconnect is given and a target node, kill the stream when
the target node can't be found.
2018-12-14 16:35:57 +01:00
Wim Taymans
8e969c9d44 media-session: set media (sub)type on dsp nodes 2018-12-13 17:26:35 +01:00
Wim Taymans
3ab95f66f3 media-session: don't set audio profile on non-audio nodes 2018-12-13 17:18:37 +01:00
Wim Taymans
0a27040c9a port: keep track of mix port states
Keep track of the state of the mixer ports and update the port state
accordingly. This avoids clearing the format or buffers on the port
when mixers are still busy.
2018-12-13 12:04:02 +01:00
Wim Taymans
491dd785ad media-session: only try to link to nodes 2018-12-12 18:32:28 +01:00
Wim Taymans
02585c6ca9 merger: add monitor ports
Add an option to enable monitor ports. Use this in the audio dsp
to expose monitor ports on the audio dsp nodes.
2018-12-11 16:35:40 +01:00
Wim Taymans
2bd7f5c934 media-session: skip non-dsp ports on dsp nodes
Detect DSP nodes sooner, flag pads that have the dsp property, skip
ports on DSP nodes without the dsp flag.
2018-12-11 16:32:19 +01:00
Wim Taymans
626cdab268 node: log error 2018-12-11 15:23:12 +01:00
Wim Taymans
3476617cff node: only add node when active
When moving a node from one graph to another, only add the node if
it was actually added to the source graph. Because nodes are added when
activated, it might be possible the node was not added yet.
2018-12-10 15:09:04 +01:00
Wim Taymans
9805c2f413 stream: add DONT_RECONNECT flag 2018-12-05 16:01:42 +01:00
Wim Taymans
4d780e87aa client-stream: activate peaks resampler when monitoring 2018-12-05 16:00:52 +01:00
Wim Taymans
5fcbbb4d6b media-session: keep track of profile format
Also keep track of the profile format of a node, this is the profile we
choose for it and what we should use as a profile for the peer node.
2018-12-05 15:59:45 +01:00
Wim Taymans
bdc97ae140 client-stream: fix cleanup
first let the client-stream node cleanup and then destroy our
client-node.
2018-12-04 16:20:57 +01:00
Wim Taymans
53c2eb2625 stream: clear queued items when clearing buffers 2018-12-04 13:36:37 +01:00