Commit graph

82 commits

Author SHA1 Message Date
Wim Taymans
61edd78bf4 fix for api changes 2019-02-18 12:27:38 +01:00
Wim Taymans
5f9200d9ee pulse: add SPA_EXPORT 2019-02-06 13:23:43 +01:00
Wim Taymans
6cd1104d0c context: fix some memory leaks 2019-01-30 15:24:07 +01:00
Wim Taymans
1fd2e6beae update for param api change 2019-01-18 13:39:37 +01:00
Wim Taymans
386e5c966c pulse: update to new pod api 2019-01-16 11:04:22 +01:00
Wim Taymans
f509e8552d pulse: improve includes 2019-01-14 13:01:47 +01:00
Wim Taymans
14573f1201 pulse: use core_proxy to listen for done and info messages 2019-01-10 09:31:37 +01:00
Wim Taymans
0de0de299a add const to info 2019-01-09 17:48:51 +01:00
Wim Taymans
491a7679f8 add _GNU_SOURCE 2019-01-08 17:35:54 +01:00
Wim Taymans
5680e29716 pulse: add user_data to core 2019-01-08 17:30:57 +01:00
Wim Taymans
ac4ad7c8f1 stream: avoid void * arithmetics 2019-01-08 11:55:42 +01:00
Wim Taymans
bebfcf0190 stream: don't use buffer id 2019-01-07 17:54:31 +01:00
Wim Taymans
89fb73a949 fix signed and unsigned comparisons 2019-01-07 15:04:34 +01:00
Wim Taymans
9062145e13 implement more API
Implement the sink/source volume/mute api
2019-01-04 10:00:57 +01:00
Wim Taymans
3d95ea4d13 introspect: set sink/source flags 2018-12-20 13:08:09 +01:00
Wim Taymans
7c18cc431f json: fix free of arrays 2018-12-20 13:07:53 +01:00
Wim Taymans
3d34acd2f2 introspect: fix profiles free 2018-12-20 12:46:35 +01:00
Wim Taymans
96205687c5 stream: make sure we have a context
Make sure we ref the stream because else it would be freed when
disconnected and we can't get the context anymore.
2018-12-17 13:27:27 +01:00
Wim Taymans
41513f11f3 context: improve cleanup 2018-12-14 16:43:34 +01:00
Wim Taymans
21c11e70fb operation: keep ref on stream 2018-12-14 16:42:57 +01:00
Wim Taymans
6db8e05256 introspect: implement more 2018-12-14 16:42:36 +01:00
Wim Taymans
35edefdaaf context: emit change event when nodes are linked 2018-12-14 16:42:01 +01:00
Wim Taymans
b177f1d146 context: small cleanups 2018-12-14 16:41:19 +01:00
Wim Taymans
c9ac5e6e1e context: report error only once 2018-12-14 16:39:19 +01:00
Wim Taymans
72b61f614a stream: handle monitor sources 2018-12-11 16:37:30 +01:00
Wim Taymans
c201a1e666 stream: enable monitor when PEAK_DETECT flag is set 2018-12-05 16:02:03 +01:00
Wim Taymans
ece9cff495 introspect: implement kill operations 2018-12-04 16:36:49 +01:00
Wim Taymans
bb101afa0c introspect: merge client properties in sink_input/source_output
sink_input and source_output must contain the merged properties of
the client.
2018-12-04 16:34:58 +01:00
Wim Taymans
e0970386f0 context: add properties 2018-12-04 16:33:59 +01:00
Wim Taymans
2d4ecaf85d introspect: use right client property 2018-12-04 13:38:58 +01:00
Wim Taymans
1efd5f185c proplist: implement merge mode 2018-12-04 13:38:46 +01:00
Wim Taymans
84a7bf671c stream: connect to source and sink
Stream: also connect to the right source, try to convert the name to
index when lookup fails, just like what pulseaudio does.
Implement more proplist functions, add some more info to the stream.
stream: handle NULL format
Improve introspection of the sink_input and source_output name, this
should be the media.name when possible.
2018-12-04 11:50:23 +01:00
Wim Taymans
ad723e3793 context: log more info on errors 2018-12-03 15:12:27 +01:00
Wim Taymans
2864e7ec75 introspect: improve introspection
Update introspection structures when we get the info from pipewire.
2018-11-29 17:30:24 +01:00
Wim Taymans
d02a8375c3 introspect: implement more introspect 2018-11-28 13:38:37 +01:00
Wim Taymans
08d6071693 context: list audio devices as cards
Find the sink/source a stream is linked to
2018-11-28 11:13:21 +01:00
Wim Taymans
e8dfd22a6b stream: update for delay sign change 2018-11-09 15:25:39 +01:00
Wim Taymans
88a786fdad stream: use TIMESPEC_TO_USEC 2018-11-07 09:57:22 +01:00
Wim Taymans
a70b02064c stream: fix for target_id 2018-11-02 12:31:43 +01:00
Wim Taymans
ed2f054e76 volume: fix for old api 2018-10-30 09:50:44 +00:00
Wim Taymans
2a1328533f stream: use pw_stream_update_properties 2018-10-23 16:50:17 +02:00
Wim Taymans
a14e16806f mainloop-glib: destroy the source 2018-10-19 17:15:19 +02:00
Wim Taymans
e4c94bf12d proplist: fix compilation 2018-10-19 17:00:25 +02:00
Wim Taymans
01aa9a5960 introspect: implement enough to make gnome-control-center work
We can see sources and sink and change the volume/mute of streams
2018-10-19 16:57:03 +02:00
Wim Taymans
faccc8d506 implement more methods
Implement extensions with dummies
Implement some more introspection, enough to make pavucontrol start
Implement volume changes on sink_input
2018-10-19 13:30:20 +02:00
Wim Taymans
5498d9c726 glib-mainloop: implement glib mainloop support 2018-10-19 13:27:58 +02:00
Wim Taymans
b742d7533e stream: only queue buffer when filled
We need to completely fill the buffer before we queue the buffer. If we
don't do this, we might have reported a larger writable size than
what we actually can do and that makes clients fail.

This is not entirely completely correct because a client can expect to
have its buffer sent as soon as it completes the write. We should really
just queue the data in a separate queue when we run out of buffers.
2018-10-16 09:58:14 +02:00
Wim Taymans
f74a0fb9bd stream: implement _set_name 2018-10-16 09:56:12 +02:00
Wim Taymans
a00c00baed stream: maxlength / size is the number of buffers we want
tlength is what the server buffers and is of no importance for deciding
the number of buffers.
2018-10-09 17:31:06 +02:00
Wim Taymans
9d2cf17516 bitset: init and clear bitset correctly 2018-10-09 17:30:37 +02:00