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
Wim Taymans
74eaf5a2ca
pw-cat: parse metadata and make a nice media.name if possible
2020-10-20 17:11:00 +02:00
Wim Taymans
0c04481ba7
metadata: improve default sink/source
...
Only check defaults when subject is PW_ID_CORE
Handle NULL keys: remove the defaults
2020-08-18 17:56:05 +02:00
Emmanuel Gil Peyrot
14fdf07e8f
Run codespell on the entire codebase
...
This tool detects and fixes common English spelling mistakes, with
generally very few mistakes.
Here is the command I used to generate this commit. There were a few
changes that had to be done manually, and of course adding the ignore
file:
```shell
codespell -I .codespell-ignore -x .codespell-ignore -w
```
I didn’t add it to the CI, but this would be a good place for it.
2020-08-17 17:16:31 +00:00
Wim Taymans
a3350d44eb
pw-cat: use metadata to tag default device
2020-08-10 17:45:45 +02:00
Wim Taymans
cb14b41537
pw-cat: enable rtkit
2020-08-05 17:46:51 +02:00
Wim Taymans
91d4806611
permission: add some helpers
...
Add PW_PERM_ALL as a shortcut for all permissions
Add PW_PERMISSION_FORMAT and PW_PERMISSION_ARGS to nicely format
permissions.
2020-07-30 16:26:29 +02:00
Wim Taymans
f20aa405cb
pw-cat: fallback to default channel map in record
...
If not otherwise specified, use the default channelmap when recording.
2020-07-22 17:26:14 +02:00
Wim Taymans
022705d813
pw-cat: fix leak in channel parsing
2020-07-22 11:26:06 +02:00
Wim Taymans
2955182e4e
use spa_debug_type_short_name() when we can
2020-07-22 11:22:11 +02:00
Wim Taymans
3eb37320c9
pw-cli: improve permission debug
2020-07-16 17:46:47 +02:00
Wim Taymans
9caccb6125
pw-cli: quit when we quit
2020-07-16 12:49:17 +02:00
Wim Taymans
cb1a2ed769
midifile: check return of write and fail on error
2020-06-23 15:26:23 +02:00
Wim Taymans
f08c35259c
avoid uninitialized variables
2020-06-23 15:25:27 +02:00
Wim Taymans
6495199a7a
pw-mon: debug param id names
2020-06-18 12:54:17 +02:00