Wim Taymans
091b420b0b
stream: don't call suspended callback when disconnecting
2020-03-06 18:57:13 +01:00
Wim Taymans
7f086da39e
monitor: fix copy and paste errors
...
Remove some leftover stuff from the spa_monitor
Spotted by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2020-03-06 18:30:34 +01:00
Wim Taymans
1b0ad00fb1
conf: update and document the config file a little
2020-03-06 18:13:13 +01:00
Wim Taymans
e93d235208
command: add -nofail to create-object
2020-03-06 18:08:44 +01:00
Wim Taymans
bb15472e7c
context: "none" is a valid profile that loads nothing
2020-03-06 18:07:55 +01:00
Wim Taymans
54eef8bb9d
pw-cat: write midi bytes directly.
2020-03-06 16:47:02 +01:00
Wim Taymans
6700e332f9
Revert "pw-cli: Collect and display parameters from global symbols"
...
This reverts commit 3b53a6e049 .
2020-03-06 16:33:50 +01:00
Wim Taymans
524f9fd96d
Revert "Implement JSON/YAML command for graph tree traversal"
...
This reverts commit 7ead270265 .
2020-03-06 16:33:36 +01:00
Wim Taymans
8644e80304
Revert "Fix change_mask string generation"
...
This reverts commit b445bdea27 .
2020-03-06 16:33:14 +01:00
Wim Taymans
b7f952e02b
Revert "Fix printf attribute compilation errors"
...
This reverts commit 4175191d19 .
2020-03-06 16:30:32 +01:00
Wim Taymans
d880db3933
Revert "pw-cli: use core object to map id to proxy"
...
This reverts commit 918acd61ef .
2020-03-06 16:30:18 +01:00
Wim Taymans
e9884fcfb5
pw-*: Use user data to track param changes
...
Use the new param_info user field to track individual param
changes and only notify thos that changed.
2020-03-06 15:41:02 +01:00
Wim Taymans
43601ad722
introspect: use the user flag to count changes
...
Whenever a param change was found, increment the user counter
of the spa_param_info. We can use this to detect changes in
individial param_info items without having to track them
ourselves.
2020-03-06 15:40:58 +01:00
Wim Taymans
8b53ff55d0
param: add one user field to keep state
...
The this field can be used by apps who keep a copy of the
spa_param_info. They can use it, for example, to keep a counter
with the amount of changes since last processed.
2020-03-06 15:40:53 +01:00
Pantelis Antoniou
4db9a1e96d
audiotestsrc: Make audiotestsrc work
...
This small patch makes audiotestsrc work.
You will need to uncomment the following lines in pipewire.conf
add-spa-lib audiotestsrc audiotestsrc/libspa-audiotestsrc
create-object adapter node.name=my-test factory.name=audiotestsrc
If you use pw-record, use --list-targets to find the target id and
record using --target=<n>
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
2020-03-05 18:41:53 +01:00
Wim Taymans
d4fcbaa5d1
debug: make function to get short name
2020-03-05 18:18:54 +01:00
Wim Taymans
b070752add
context: don't load rtkit by default
...
Don't load and use rt-kit by default because it can cause sigkill in
the app, which is not good when it happens in a compositor.
Make the module profile a comma-separated list of profiles and make
it possible to explicitly load rtkit as well.
load the rtkit profile as well in jack.
2020-03-05 12:12:46 +01:00
Wim Taymans
c4b2be2aad
use true and false for boolean properties
...
So that it's easier to convert them to booleans in introspection
code later.
2020-03-03 18:17:46 +01:00
Wim Taymans
b60d7bf2bc
examples: always use last buffers
...
Skip buffers and always use the last buffer in the queue. This
compensates for slow reading clients.
2020-03-03 13:28:21 +01:00
Wim Taymans
b9916ea5b2
impl-node: don't warn when setting io fails
...
It's ok to not implement the io_position area. Don't warn when this
happens but always configure the area in the node.
2020-03-03 13:18:36 +01:00
Wim Taymans
8096984b7e
testsrc: remove checks in suspend and pause
...
We don't need to have a format or buffers to be able to pause.
2020-03-03 13:17:28 +01:00
Wim Taymans
913cf29dcd
context: always set unassigned node driver to NULL
...
When a node is unassigned and doesn't need a driver, set the driver
to NULL and the node to IDLE.
2020-03-03 13:04:33 +01:00
Wim Taymans
fd262aa0f2
adapter: add some debug
2020-03-03 13:04:13 +01:00
Wim Taymans
205828a244
daemon: add create-object command
...
Add a command to create an object from a factory. Add some example
lines in the config file on how to wrap an audiotestsrc in an
adapter with this.
2020-03-03 12:15:49 +01:00
Wim Taymans
11fc529fa0
stream: don't call trigger in dequeue
...
Dequeue should not ever trigger the start of a cycle.
2020-03-03 11:17:47 +01:00
Wim Taymans
2d88970dab
examples: use better Buffer values
2020-03-03 11:17:22 +01:00
Wim Taymans
ce275e5917
small cleanups
2020-03-03 10:25:03 +01:00
Wim Taymans
3d9f54d8a4
midifile: count channels from 1 to 16
2020-03-03 10:25:03 +01:00
Wim Taymans
a3ec0cf49e
examples: improve some debug
2020-03-02 17:28:10 +01:00
Wim Taymans
fef0e17b76
buffer: document memory type when allocating
...
When allocating buffers the type will contain a bitmask of
allowed types.
2020-03-02 17:28:07 +01:00
Wim Taymans
c8633767e7
remote-node: map buffer metadata readwrite
...
Map the buffer metadata in read/write mode. Some metadata might
need to be writable even for input buffers (like ref-count metadata)
2020-03-02 16:51:32 +01:00
Wim Taymans
37a1dc5265
jack: use constant for type_id
2020-03-02 16:50:37 +01:00
Wim Taymans
4c2954b7a9
stream: clear buffer when format is cleared
...
Setting the format to NULL should clear the buffers.
2020-03-02 16:27:18 +01:00
worldofpeace
6b06341b14
build: use define_variable for get_pkgconfig_variable
...
On NixOS all packages are installed into their own immutable prefix.
Because of this get_pkgconfig_variable will return a
path from within systemd's prefix and we cannot write to it.
By using define_variable we can replace the respective directory
to be from the paths from meson.
2020-03-02 14:51:27 +00:00
Wim Taymans
73da0f8878
jack: use pthread cancel to stop the data thread
...
Activate the new option to pthread_cancel the data thread because
that is what jack apps expect.
Fixes #211
2020-03-02 15:47:52 +01:00
Wim Taymans
e76351da79
data-loop: add option to pthread_cancel the thread
...
Don't use pthread_cancel by default to stop the data thread but
instead use an eventfd. pthread_cancel uses a signal and is not
nice to use in a library as it can cause strange crashes.
See #211
2020-03-02 15:44:47 +01:00
Wim Taymans
ce80e05b25
data-loop: leave the thread when leaving
2020-03-02 15:17:40 +01:00
Wim Taymans
cfa0e7da0b
filter: add support for locked params
...
Lock the params so that they won't disappear.
2020-03-02 12:34:05 +01:00
Wim Taymans
77a8dcece9
stream: add support for locked params
...
Lock the IOBuffers param so that it won't disappear ever.
2020-03-02 12:28:48 +01:00
Wim Taymans
0ed86941ce
client-node: only return -ENOENT for unknown param
...
Always iterate all params because we are only supposed to
return -ENOENT for unknown params and if we start iterating at some
random start position we might be past the paran and report -ENOENT
wrongly.
2020-03-02 12:26:10 +01:00
Wim Taymans
847ee8f064
metadata: fix cleanup
...
When the global is destroyed, free the resource.
When the resource is freed, destroy the global.
Make sure any bound resources are freed when the global is destroyed
by calling pw_global_add_resource().
2020-03-02 10:49:04 +01:00
Wim Taymans
77cc58ba71
protocol-native: improve bool in set_active
2020-03-02 10:48:31 +01:00
Wim Taymans
33102abe4d
pw-cat: dump midi events in vebose mode
2020-03-01 20:39:46 +01:00
Wim Taymans
70fc09b891
midifile: add support for event dump
...
Make a method to dump event info to stdout.
2020-03-01 20:39:07 +01:00
Wim Taymans
3b1fc4acce
midifile: put some parsed data in the event
...
Put some of the data we parsed into the event.
2020-03-01 20:37:50 +01:00
Wim Taymans
5498483337
filter: add support for control ports
2020-03-01 20:36:55 +01:00
Wim Taymans
2982b9511e
pw-cat: simplify midi reading and writing
2020-02-28 20:35:28 +01:00
Wim Taymans
c3b550478a
pod: document that the choice array might have excess elements
...
The choice array might have excess elements when the type has been
changed, for example by fixation. This is not a problem and the
excess elements should simply be ignored.
2020-02-27 16:23:12 +01:00
Wim Taymans
a3582f0e0f
pw-cat: add midi recording
2020-02-27 15:37:12 +01:00
Wim Taymans
d31d6b59f1
port: debug the number of buffers as well
2020-02-27 13:47:40 +01:00