Commit graph

3023 commits

Author SHA1 Message Date
Wim Taymans
93a8747a44 type: add command 2018-08-24 10:59:39 +02:00
Wim Taymans
805e3bb6c1 types: work on types
Move static pod types to type system
work on type info for types
Move the event and command ids to an enum to make it easier to extend
later.
2018-08-24 10:53:09 +02:00
Wim Taymans
fca3e1d85d Remove dynamic types
Do not use dynamic types anymore. The reason is that it's difficult:

- to maintain a shared type database over a network.
- the extra overhead when translating between processes and for
  maintaining the translation tables.
- race conditions in translating in RT-threads, this is a problem
  because we want to make event streams.

We now have simple enums with types and extension points for all
types. This is also nicer to use in general.
We don't need the mapper anymore or pass strings around as types.
There is a parallel type info system to get more info about ids and
enums and their hierarchy. It can also be used for debugging.
2018-08-23 17:47:57 +02:00
Wim Taymans
e6977fa178 fmt: unrolled loop only works for stereo 2018-08-21 10:02:16 +02:00
Wim Taymans
898bb4b059 audio-dsp: fix capture again
Use splitter element to split device format to float32
2018-08-20 17:57:38 +02:00
Wim Taymans
5de4dab21b spa: set buffer sizes better 2018-08-20 17:56:59 +02:00
Rasmus Thomsen
e56344e55e meson: rename options as per meson's style guide
see https://mesonbuild.com/Style-guide.html
2018-08-17 17:52:19 +02:00
Rasmus Thomsen
55cb38d0a8 meson: add systemd option
This is handy for source distributions, which want to avoid
automagic dependencies
2018-08-17 17:50:16 +02:00
Rasmus Thomsen
58c977f69e build: respect 'includedir' meson param 2018-08-17 17:50:08 +02:00
Wim Taymans
095e69882e remove unused functions 2018-08-17 16:29:20 +02:00
Wim Taymans
8ae7577689 remove unused functions 2018-08-17 16:28:43 +02:00
Wim Taymans
95727d3b01 protocol: don't log error on disconnect
Just log an info message on disconnect. Fixes #33
2018-08-17 13:34:15 +02:00
Wim Taymans
9ea266f789 protocol: don't log error on disconnect
Just log an info message on disconnect. Fixes #33
2018-08-17 13:18:00 +02:00
Wim Taymans
c6c7c4577e meson: remove jack dependency 2018-08-17 10:34:38 +02:00
Rasmus Thomsen
3bf53f5e22 meson: rename options as per meson's style guide
see https://mesonbuild.com/Style-guide.html
2018-08-17 10:29:39 +02:00
Rasmus Thomsen
165c441ced meson: add systemd option
This is handy for source distributions, which want to avoid
automagic dependencies
2018-08-17 10:29:39 +02:00
Rasmus Thomsen
90400b17d6 build: respect 'includedir' meson param 2018-08-17 10:28:35 +02:00
Wim Taymans
c06d775ddc man: add man page for config file 2018-08-17 10:19:20 +02:00
Wim Taymans
aea505425b man: add man page for config file 2018-08-17 10:18:41 +02:00
Wim Taymans
eab60c14c2 man: update man page 2018-08-17 09:38:13 +02:00
Wim Taymans
d70e027a99 daemon: add some options 2018-08-17 09:38:08 +02:00
Wim Taymans
e2c2b54742 man: update man page 2018-08-16 18:28:20 +02:00
Wim Taymans
f287cea9e8 daemon: add some options 2018-08-16 18:25:30 +02:00
Wim Taymans
5eac8f7675 remove last debug includes
Fixes #82
2018-08-16 13:26:49 +02:00
Wim Taymans
ffa3b03982 stream: update for rate changes 2018-08-15 21:46:50 +02:00
Wim Taymans
25cff88c33 pcm: no need for any buffer or period restrictions 2018-08-15 21:45:29 +02:00
Wim Taymans
ae97f98561 alsa: remove debug 2018-08-15 21:45:14 +02:00
Wim Taymans
2a0c5c5a8f jack: fix for timing rate update 2018-08-15 21:44:32 +02:00
Wim Taymans
a7807ef1c5 pipewiresrc: hack live source for now 2018-08-15 21:35:02 +02:00
Wim Taymans
b31832dac9 v4l2: set pts correctly
The pts is supposed to be go in sync with the clock. Our clock is based
on sequence numbers so translate the PTS to this as well.
2018-08-15 21:33:58 +02:00
Wim Taymans
26fa9eae39 clock: set rate correctly
The ticks multiplied by the rate should give the time in seconds.
2018-08-15 21:31:59 +02:00
Wim Taymans
d181574520 gstpipewiresrc: cleanups
Clear the stream after we remove it from the clock.
2018-08-15 21:30:43 +02:00
Wim Taymans
a3e4c6df99 gst: improve buffer params 2018-08-15 21:29:40 +02:00
Wim Taymans
009f23abaa gst: interpollate clock times 2018-08-15 21:28:21 +02:00
Wim Taymans
1826d00f82 jack: improve init buffers 2018-08-15 21:26:05 +02:00
Wim Taymans
fb76b65dfb gst: fix clock handling again
Request periodic clock updates.
Interpollate clock times in the gstreamer clock
Make sure we don't read the clock after shutdown.
2018-08-15 17:27:17 +02:00
Wim Taymans
0f66716de9 gst: avoid clock overflow 2018-08-15 15:51:35 +02:00
Wim Taymans
f464b8ee45 link: improve debug 2018-08-15 13:51:38 +02:00
Wim Taymans
f36fa5d2cb example: improve debug 2018-08-15 13:48:49 +02:00
Wim Taymans
921b613cca pipewiresink: improve driver mode 2018-08-15 13:46:40 +02:00
Wim Taymans
98f54c4135 pipewiresink: improve driver mode 2018-08-15 13:16:11 +02:00
Wim Taymans
c6f701588f link: improve debug 2018-08-15 13:15:54 +02:00
Wim Taymans
cc1062933b example: improve debug 2018-08-15 13:15:36 +02:00
Wim Taymans
d8525e3732 hooks: enforce version on hook emission
Pass the minimum required version to the hook emission and only call
events when the handler is recent enough.
Add some macros to make event emission easier to read.
2018-08-15 11:53:23 +02:00
Wim Taymans
150e30dfb9 map: make for_each use a return value
Make it possible to stop pw_map_for_each by adding a return value
to the callback.
2018-08-15 11:25:05 +02:00
Wim Taymans
2de7f9cc03 list: add iteration with a cursor
Iterating a list with a cursor is heavier but is safe against removal
of any element in the list. Move the hook cursor iterator to list.
2018-08-15 11:24:40 +02:00
Wim Taymans
f71be550c3 map: make for_each use a return value
Make it possible to stop pw_map_for_each by adding a return value
to the callback.
2018-08-15 11:18:55 +02:00
Wim Taymans
5fe230e5ff list: add iteration with a cursor
Iterating a list with a cursor is heavier but is safe against removal
of any element in the list. Move the hook cursor iterator to list.
2018-08-15 11:17:12 +02:00
Wim Taymans
813506a614 map: use invalid value for empty list 2018-08-14 17:03:17 +02:00
Wim Taymans
ce4232cbc7 map: use invalid value for empty list 2018-08-14 16:57:34 +02:00