Commit graph

1692 commits

Author SHA1 Message Date
Wim Taymans
90571c2f52 audiotestsrc: fix build 2018-11-26 13:27:35 +01:00
maxice8
3b117d9ecf module-rtkit: define RLIMIT_RTTIME in case it isn't defined.
musl libc doesn't define RLIMIT_RTTIME
2018-11-26 13:24:27 +01:00
maxice8
b911c36793 meson: don't add systemd_dep to dependencies if systemd option is false. 2018-11-26 13:24:23 +01:00
maxice8
0a8861bcbc meson: Fix configure when systemd option is set to false
Otherwise it fails with systemd variable not found.
2018-11-26 13:24:19 +01:00
Wim Taymans
7bc9c1ebfe node: remove info from node interface
Replace with info event emited when callbacks are set. This makes it
easier to implement dynamic changes.
2018-11-26 12:41:40 +01:00
Wim Taymans
57e94f7bc4 monitor: remove enum_items
Make the monitor and device emit the info and items when the callbacks
are set. This makes it easier to implement the monitor because there
is much less state to keep around and invalidate etc.
Rework the monitors
Add bluez5 device
2018-11-26 12:18:53 +01:00
Wim Taymans
10d277ce03 cli: introspect device 2018-11-23 19:29:36 +01:00
Wim Taymans
5b303b5883 protocol: add name to device 2018-11-23 19:29:04 +01:00
Wim Taymans
36cbb947f1 alsa: add media.class to device 2018-11-23 19:28:47 +01:00
Wim Taymans
3ae39180ca improve monitors 2018-11-23 19:14:47 +01:00
Wim Taymans
e23c209a5f alsa: implement monitor and device 2018-11-23 17:41:39 +01:00
Wim Taymans
0a88805743 device: handle device remove, clean up nodes 2018-11-23 13:12:03 +01:00
Wim Taymans
e1bd12e599 device: add device object
Make a device object, let the v4l2 monitor create device objects
The device object is responsible for dynamically creating nodes.
2018-11-23 12:43:47 +01:00
Wim Taymans
79253c6d46 interfaces: remove unused stuff 2018-11-22 13:36:29 +01:00
Wim Taymans
db13f90732 monitor: lookup type names 2018-11-22 13:35:30 +01:00
Wim Taymans
37c13eb83f fmt: fix offsets 2018-11-21 16:58:27 +01:00
Wim Taymans
6ee3a6003e channelmix: optimize some more 2018-11-21 16:45:31 +01:00
Wim Taymans
c8aa1f38df bluez5: negotiate AAC if possible 2018-11-21 15:51:44 +01:00
Wim Taymans
13010d5d2e fmt: use faster s24 to f32 conversion 2018-11-21 15:51:03 +01:00
Wim Taymans
25c81e8c34 media-session: only add DSP for raw audio nodes 2018-11-21 12:19:47 +01:00
Wim Taymans
5e8d9fb196 merger: fix enum_param 2018-11-21 12:18:56 +01:00
Wim Taymans
b27206c24a alsa: debug->trace 2018-11-20 16:13:56 +01:00
Wim Taymans
d70b4b2b10 alsa: more tweaks
Set the lowest possible period time, this lowers the latency.
Adjust slaved stream when we are drifting too much.
Use faster snd_pcm_avail and only use get_status when in error.
2018-11-20 16:08:57 +01:00
Wim Taymans
afd9a6c95f alsa: fix capture again 2018-11-19 18:03:45 +01:00
Wim Taymans
7e9b223216 alsa: reduce start latency 2018-11-19 12:01:36 +01:00
Wim Taymans
27451e4350 alsa: tweak dll some more after xrun 2018-11-19 11:51:51 +01:00
Wim Taymans
f063cc9086 audioconvert: improve negotiation
Configure format and buffers when the ports are configured instead of
in the start command.
2018-11-19 10:03:55 +01:00
Wim Taymans
0343297257 alsa: rework timing
Use a DLL to track the hardware pointer and use this to set the
timer.
Handle XRUN and recover.
2018-11-16 17:00:40 +01:00
Wim Taymans
5444b850d2 fmtconvert: improve enum_format 2018-11-16 16:56:33 +01:00
Wim Taymans
3e1e6b02b5 resample: add property to change resample rate 2018-11-16 16:54:56 +01:00
Wim Taymans
9d44d0b135 parser: add some utils to parse values 2018-11-16 16:52:04 +01:00
Wim Taymans
0303b7d1c5 props: add rate property 2018-11-16 16:48:49 +01:00
Wim Taymans
a096e6d9c9 link: only start node when all links are ready 2018-11-16 16:45:40 +01:00
Wim Taymans
c9f7439b52 media-session: debug profile 2018-11-16 16:41:13 +01:00
Wim Taymans
d8db090ac2 alsa: only remove sources when they were added 2018-11-12 15:52:11 +01:00
Wim Taymans
b6f01542d8 spa: explicitly cast the offset to signed int
As reported by Marcello Blancasio, convert the offset to a signed int
to avoid conversion without sign extension. Fixes unmap of stream
memory.

Fixes #103
2018-11-12 12:05:59 +01:00
Wim Taymans
416b9c254e alsa: have slaved sink
When we are slaved, calculate our rate difference with the master
2018-11-12 10:18:21 +01:00
Wim Taymans
6f555c63e2 alsa: set buffer_id in io to INVALID when in use 2018-11-12 09:56:45 +01:00
Wim Taymans
0f7a3bdb2a alsa: use dynamic bandwidth 2018-11-12 09:55:21 +01:00
Wim Taymans
3d3d86fd24 node: set clock id and position 2018-11-12 09:53:49 +01:00
Wim Taymans
e03289b4ac video-src: print node id 2018-11-12 09:52:59 +01:00
Wim Taymans
e69cf24f24 alsa: add dll to estimate clock drift
Make delay signed in the clock io so that we can simply add it to the
tick to get the hw position.
Add clock drift to clock info
2018-11-09 15:26:08 +01:00
Wim Taymans
7925aed863 video-src: use FLAG_MAP_BUFFERS 2018-11-08 11:43:35 +01:00
Wim Taymans
3267667d94 fmt: improve s24 to float conversion 2018-11-08 09:56:58 +01:00
Wim Taymans
9825932b88 test-convert2: add channel position 2018-11-07 11:59:12 +01:00
Wim Taymans
e47bfa02e5 audiotestsrc: properties are float 2018-11-07 11:57:58 +01:00
Wim Taymans
4d7311aca1 channelmix: handle stereo to mono 2018-11-07 11:57:19 +01:00
Wim Taymans
2b88dde567 fmtconvert: add conversions for planar to planar 2018-11-07 11:56:19 +01:00
Wim Taymans
00a570f7de audio-format: set unpossisioned flag
If we don't have position information in the format, set the
unpositioned flag. Don't set position info in the format when the
unpositioned flag is set.
2018-11-07 11:54:23 +01:00
Wim Taymans
aade499aae fix TIMESPEC_TO_NSEC 2018-11-07 10:07:48 +01:00