Wim Taymans
90d8589fb9
pw-dump: always output colors and add option to disable
...
-N disables colors now. Usually we want to preserve them in debug
files and grep etc.
Use less -R to get colors
See #698
2021-02-08 19:52:24 +01:00
Wim Taymans
c25bdce645
rework param updates
...
Make it possible to add a NULL param to the pending list. The NULL
param removes all previous updates.
When applying the updates, the NULL param removes the params from
the target list.
For the cached params in the node/device/port we need to be careful
because multiple clients might ask for updates concurrently. Clear
the pending list whenever a new param update starts so that we always
only keep the last set of updates.
This has two advantages: it actually removes params that become
unreadable or that got removed and it allows us to update the target
list more efficiently in one single loop.
2021-02-05 11:03:47 +01:00
Wim Taymans
994fc1169e
Revert "rework param updates"
...
This reverts commit 5aa7746c95 .
Routes are duplicated for some reason, needs more debugging.
2021-02-04 20:56:54 +01:00
Wim Taymans
5aa7746c95
rework param updates
...
Make it possible to add a NULL param to the pending list. The NULL
param removes all previous updates.
When applying the updates, the NULL param removes the params from
the target list.
This has two advantages: it actually removes params that become
unreadable or that got removed and it allows us to update the target
list more efficiently in one single loop.
2021-02-04 13:26:35 +01:00
Wim Taymans
4c46495c38
pw-dump: don't print unreadable params
2021-02-03 19:27:57 +01:00
Wim Taymans
be7415dac8
pw-top: improve period and rate columns
2021-02-03 11:46:01 +01:00
Wim Taymans
379cbeaa5d
pw-cat: fix option for playback
...
Fixes #665
2021-02-02 15:17:38 +01:00
Wim Taymans
2b44f42845
pass the complete buffer size to snprintf
...
There is no reason to pass size-1, snprintf will always put a \0
at the end.
2021-02-02 12:09:29 +01:00
Wim Taymans
2b98b7dc7a
pw-dump: print None pod as null
2021-01-22 17:23:33 +01:00
Wim Taymans
07b52299db
pw-top: make a line shorter so that it fits better
2021-01-21 17:46:47 +01:00
Wim Taymans
4fb967211e
pw-top: refresh immediately
2021-01-21 15:20:07 +01:00
Wim Taymans
579e8a4ea6
json: allocate one extra byte for the \0
2021-01-19 16:56:55 +01:00
Wim Taymans
f891324e25
pw-dump: mark objects without events as changed
...
Usually the event function marks the object as changed so when
there is no event function, mark the change immediately so that
we can dump it.
2021-01-19 16:36:55 +01:00
Wim Taymans
5a7f4a619a
pw-dump: also dump properties
2021-01-15 09:45:56 +01:00
Wim Taymans
ae263eeffc
pw-dump: only dump changed metadata entries
2021-01-14 21:14:16 +01:00
Wim Taymans
688b3c5ed4
pw-dump: only output [] when something changed
2021-01-14 20:17:22 +01:00
Wim Taymans
a97d4c44b4
pw-metadata: remove is when key == NULL
2021-01-14 20:11:43 +01:00
Wim Taymans
13cef576c9
pw-dump: dump metadata contents
...
Fix some leaks
2021-01-14 20:11:15 +01:00
Wim Taymans
792c01aede
pw-dump: trigger change in metadata
...
so that it is displayed
2021-01-14 19:22:40 +01:00
Wim Taymans
abe73c9146
meson: use global b_pie to build PIE executables
2021-01-14 16:29:32 +01:00
Wim Taymans
a6433b0839
pw-dump: mark new objects without proxy as changed
...
So that they are actually printed.
2021-01-14 15:39:02 +01:00
Wim Taymans
c9354c238f
Add -fPIE to installed executables
...
Fixes #570
2021-01-13 19:40:37 +01:00
Wim Taymans
878240e30a
pw-dump: add simple monitor option (-m)
2021-01-11 10:24:39 +01:00
Wim Taymans
84eed9ef6f
pw-cat: use none as default latency for record
...
Don't force the record latency to the large latency we use for playback
(100ms) but set it to none, which means use defaults.
2021-01-08 16:30:57 +01:00
Wim Taymans
9a03f8769e
pw-cli: handle unquoted strings
...
Use parse_string for everything else to use it as a string value.
Make it possible to use short name for the param.
so now you can do:
pw-cli set-param 55 Props '{ channelVolumes: [ 0.3, 0.3 ], channelMap: [ FR,FL ] }'
2021-01-08 12:23:02 +01:00
Wim Taymans
ef6bb2195a
pw-dump: dump all objects
...
Dump all objects, not only the ones for which we have a class.
2021-01-08 10:51:37 +01:00
Nicolai Syvertsen
7a82be3361
pw-top: Fallback to app name if no node name/desc exists
2021-01-04 19:26:44 +00:00
Wim Taymans
f28fb692a4
pw-top: handle io
2020-12-25 16:35:38 +01:00
Wim Taymans
ae8f8b25f6
pw-top: add new tool
...
Uses ncurses to display all drivers and nodes with their latency,
error count and DSP usage.
2020-12-25 16:33:54 +01:00
Gabriel Ebner
7bdcfb6383
pw-cat: report delay
2020-12-23 19:13:29 +00:00
Wim Taymans
7ef15f3721
pw-dump: convert unknown ids to id-<hexnum>
2020-12-18 17:54:40 +01:00
Wim Taymans
abe12cf790
pw-dump: improve choice values
...
Place range and step values on a single line
2020-12-18 17:49:46 +01:00
Wim Taymans
724d2581f0
pw-dump: add final \n at the end
2020-12-17 15:10:43 +01:00
Wim Taymans
0e9ba69d3a
pw-dump: simplify the state handling
...
Fixes first \n
2020-12-15 18:12:21 +01:00
Wim Taymans
5e99ff52e7
pw-dump: handle NULL in link format
2020-12-15 10:17:47 +01:00
Wim Taymans
cc31412ef3
pw-dump: handle 0 size string
2020-12-14 17:15:49 +01:00
Wim Taymans
69ea147a29
pw-dump: add optional object id
2020-12-14 16:57:09 +01:00
Wim Taymans
5e33352d5d
pw-dump: escape keys and strings
...
Use the json escape function to escape keys and strings.
Make most put functions accept an optional key
Use flags helper for permissions as well
2020-12-14 16:46:23 +01:00
Wim Taymans
8f85e74b5d
pw-dump: add colors on tty
2020-12-14 16:19:56 +01:00
Wim Taymans
3ac2bc0ad2
pod: descend in array type if possible
2020-12-14 16:18:57 +01:00
Wim Taymans
dd28937ccb
pw-dump: refactor change_mask code
2020-12-14 15:42:54 +01:00
Wim Taymans
88fe2c4fb4
tools: add pw-dump tool
...
Dumps the complete object tree as json so that it can be processed
with tools like jq
2020-12-14 15:22:16 +01:00
Wim Taymans
1e9b152bb5
spa: make an extra level for arrays
...
Make a level with type info for the array elements.
2020-12-01 13:30:14 +01:00
Wim Taymans
97ec1ce209
pw-cat: handle stream error
...
Exit when the stream is in error
See #430
2020-12-01 09:39:16 +01:00
Wim Taymans
95718792c4
pw-cli: implement set_param
...
You can do something like this to set some params:
pw-cli set-param 46 13 '{ "index": 5,
"props": { "mute": false,
"channelMap": [ "FL", "LFE" ]
},
"direction": "Output"
}'
2020-11-30 13:31:46 +01:00
Wim Taymans
d822a0b1d0
pw-metadata: make it possible to select metdata by name
2020-11-20 17:47:21 +01:00
Wim Taymans
b3aa346063
handle core error better
...
Use the PW_ID_CORE constant
Quit the mainloop when server disconnected in the tools
See #395
2020-11-20 12:29:51 +01:00
Wim Taymans
1570e62635
remove hooks from objects
...
Remove the hooks we installed on objects in the destroy/free event
or before calling _destroy. This is not really needed but it is
a nice thing to do because it calls the hook removed callbacks.
2020-11-06 15:53:32 +01:00
Wim Taymans
bb8bd3d76d
pw-cat: don't put empty strings in metadata
2020-10-21 11:03:36 +02:00
Wim Taymans
4818795d31
pw-cat: set media.filename
2020-10-20 17:16:33 +02:00