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
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
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
Wim Taymans
088ee9f09e
Improve TIMESPEC_TO_TIME
...
Add explicit TO_NSEC and TO_USEC versions to make it clearer and to
allow for some optimizations.
2018-11-07 09:56:24 +01:00
Wim Taymans
85f2e93c54
Relicense as MIT/X11
...
Remove some obsolete files
2018-11-05 17:48:52 +01:00
Wim Taymans
9088b2f0d9
splitter: fix compilation
2018-11-02 17:51:30 +01:00
Wim Taymans
7b6df9e127
audioconvert: don't clear profile when format is cleared
2018-11-02 17:19:15 +01:00
Wim Taymans
b87397025e
pod: handle unknown types without crashing
2018-11-02 12:12:34 +01:00
Wim Taymans
6bb90ed88e
alsa: refactor get_status
2018-10-31 15:21:23 +00:00
George Kiagiadakis
57cd209d2a
spa: tests: add automated unit test for spa_ringbuffer
2018-10-31 10:50:36 +00:00
George Kiagiadakis
9724aea17f
spa: tests: add automated unit test for spa_hook_list
2018-10-31 10:50:36 +00:00
George Kiagiadakis
ef8b7bc003
spa: tests: add automated unit test for spa_list
2018-10-31 10:50:36 +00:00
George Kiagiadakis
cef55ea47d
spa: tests: add automated unit test for spa_dict
2018-10-31 10:50:36 +00:00
Wim Taymans
10531d99eb
fmt: fix conversion
2018-10-31 10:40:06 +00:00
Wim Taymans
63363d09dd
fmt: small fix to s16 conversion
2018-10-31 09:38:31 +00:00
Jan Grulich
a61f8cf666
Coding style
2018-10-31 07:48:28 +00:00
Jan Grulich
a813afd810
Fix build with c++ compilers
2018-10-31 07:48:28 +00:00
Jan Grulich
2aeb5d9d98
Install a missing header
...
This header is used by param/video/format-utils.h and therefore needed to be installed as well.
2018-10-31 07:47:31 +00:00
Wim Taymans
093c675995
a2dp: don't faile set_io
2018-10-30 16:29:39 +00:00
Wim Taymans
ef7a111611
fmt: fix and enable f32 -> s16 conversion
2018-10-30 08:37:07 +00:00
Wim Taymans
4432db4fa7
fmt-ops: fix conversion
2018-10-29 18:38:14 +00:00
Wim Taymans
ae9843aca2
disable s16 sse until fixed
2018-10-29 14:07:19 +00:00
Wim Taymans
9f61ef96ff
fmt-ops: add f32 -> s16 see optimisations
2018-10-29 09:21:33 +00:00
Wim Taymans
58c6d76328
pod: also handle choice in compare
2018-10-27 10:43:09 +01:00
Wim Taymans
9a969ac756
v4l2: we set clock and position on the node now
2018-10-27 10:11:27 +01:00
Wim Taymans
2206deb3e8
alsa: implement set_io and handle position io
...
Use position io for deciding the size of the output buffers in
alsasrc
2018-10-24 10:27:57 +02:00
Wim Taymans
4aab226047
io: add size of current cycle to position
2018-10-24 10:27:06 +02:00
Wim Taymans
34db9be04b
io: add io areas for position information
2018-10-23 16:14:17 +02:00
Wim Taymans
66de372e9a
add node set_io function
...
Also allow setting io areas on nodes. We need this to set the
graph clock and period size on the nodes.
2018-10-23 12:31:41 +02:00
Wim Taymans
d2570142fa
resample: don't output 0 buffers
2018-10-22 11:32:53 +02:00
Wim Taymans
f2e03077a8
audioconvert: add volume and mute property
...
Expose volume and mute property in channelmix and use this
in audioconvert.
2018-10-18 15:04:40 +02:00
Wim Taymans
79e976e5d7
audioconvert: small cleanups
2018-10-18 12:47:46 +02:00
Wim Taymans
6590d3a258
alsa: sanitize channel map
...
Remove unknown channels
Remove duplicate channels
Fill unknown channels with default channels
2018-10-17 12:44:05 +02:00
Wim Taymans
d27674722a
improve debug and error handling
2018-10-17 10:02:44 +02:00
Wim Taymans
6c7d2d0e1e
alsa-utils: enumerate channels using channel map
...
When there is a channelmap, return format descriptions for each layout
otherwise return a range.
2018-10-16 18:10:43 +02:00
Wim Taymans
4615c5781a
test-v4l2: call process before looking at io
2018-10-16 17:07:49 +02:00
Wim Taymans
ad35e8ef3b
pod: fix pod compare
2018-10-16 16:50:06 +02:00
Wim Taymans
aa5bc5846f
v4l2: fix preoperty get
2018-10-16 16:49:41 +02:00
Wim Taymans
6e6e87223f
channelmix: improve mute/volume handling
...
Don't try to merge the mute/volume into the matrix but pass the volume
as a separate parameter.
2018-10-15 17:57:23 +02:00
Wim Taymans
ba5e1e614b
props: add some paddig between properties
2018-10-15 17:53:14 +02:00
Wim Taymans
456c01afbc
meson: enable more options by default
...
Update submodules to latest version
2018-10-10 17:16:01 +02:00