Wim Taymans
acccccd2c0
Use SPA_IO_BUFFERS_INIT when we can
...
We should not have to initialize the state to NEED_DATA, anything
that is not HAVE_DATA is good. Also we need to set the buffer to
INVALID because else it might be recycled.
2020-03-19 13:09:21 +01:00
Wim Taymans
07f935a5ed
add some more debug
2020-03-19 13:00:35 +01:00
Wim Taymans
b6dde8d76f
vulkan: use image height of current cycle for buffer size
2020-03-18 17:21:38 +01:00
Wim Taymans
64e00165d5
Add MIT licensed compute example instead
...
Fixes #218
2020-03-18 17:20:36 +01:00
Wim Taymans
8a2af908a7
small optimizations
...
Add some SPA_LIKELY
Enable FASTPATH by default
2020-03-18 15:43:29 +01:00
Wim Taymans
57f84ae5ae
fmt-ops: use gather to read samples
2020-03-18 11:41:14 +01:00
Wim Taymans
55633ebf9a
fmt-ops: move AVX
2020-03-18 10:06:54 +01:00
Wim Taymans
949dba7bfc
fmt-ops: flesh out avx optimizations
2020-03-17 17:27:47 +01:00
Wim Taymans
72d70b0f48
Add and fix some more warnings
...
Fixes #216
2020-03-17 11:37:56 +01:00
Wim Taymans
4dcd0dacc9
fmt-ops: add more benchmark cases
2020-03-16 16:45:20 +01:00
Wim Taymans
37d3864949
merger: add some SPA_LIKELY
2020-03-16 16:12:34 +01:00
Wim Taymans
3a911dfe3b
fmt-ops: add avx2 optimized version
...
Only one optimized version but the sse2 version are compiled with
the avx2 flags so that they get optimized better.
2020-03-16 16:11:29 +01:00
Wim Taymans
6eca935e61
also test optimized versions
2020-03-16 13:08:33 +01:00
Wim Taymans
fd3dd14ebe
fmt-ops: add optimized f32 to s16 stereo conversion
2020-03-16 13:04:21 +01:00
Wim Taymans
0548fbf690
fmt-ops: fix bug in s32 to f32 conversion
2020-03-16 12:57:21 +01:00
Wim Taymans
cb7bfdf98a
sprinkly SPA_LIKELY/UNLIKELY around
2020-03-16 12:52:28 +01:00
Wim Taymans
9613f16caf
alsa-pcm: ignore error after recover
...
If we get an error after receovering, ignore it and assume we filled
the buffer completely. We need to do this or otherwise we stop the
timer and audio stops.
2020-03-12 10:52:52 +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
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
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
e31bfc78ac
videotestsrc: mark as driver by default
2020-02-21 16:49:53 +01:00
Wim Taymans
9e625441ad
videotestsrc: implement enum port-io
2020-02-21 16:25:55 +01:00
Wim Taymans
90968bbb40
testsrc: implement suspend
2020-02-21 16:24:41 +01:00
Wim Taymans
ee617682c3
audioconvert: implement Portconfig query
2020-02-21 14:59:38 +01:00
Wim Taymans
d8bac82e72
improve logging
...
Remove some harmless warnings from the log
Remove some excessive info logging
2020-02-21 11:09:34 +01:00
Wim Taymans
a528189d26
slave -> follower
...
We use master/follower terminology everywhere.
2020-02-21 10:47:32 +01:00
Wim Taymans
bdeeebfdd4
enable and fix -Werror=suggest-attribute=format
2020-02-20 18:20:04 +01:00
George Kiagiadakis
0bff0e345f
audioconvert: disable monitor port logic if both sides are in dsp mode
...
There is a use case where you may want to use audioconvert with
both input & output sides configured in dsp mode, for altering
the stream volume. When it is configured like that, the
IS_MONITOR_PORT macro wrongly thinks that all output ports except
the first one are monitor ports, originating in the merger instead
of the splitter.
This change fixes that and it also completely disables exposing
monitor ports, even if they are enabled, when both sides are in
dsp mode (fmt_input_port_info() also uses the same macro to check
if the monitor ports are to be exposed)
2020-02-20 12:34:42 +00:00
Wim Taymans
01934297bd
fix compilation warning
2020-02-20 12:03:16 +01:00
Wim Taymans
ea911f2e3f
tweak buffers a little
...
JACK can handle 2 buffers at most, make the default buffer allocator
allocate 2 buffers when no params are given.
Prefer 2 buffers, it allows some form of async fill/consume
2020-02-19 10:17:00 +01:00
Wim Taymans
75e14ecadc
resample: tweak resample qualities a little
2020-02-14 20:23:15 +01:00
Wim Taymans
621f6ca10b
resample: reset props first, then override
2020-02-14 20:22:55 +01:00
Wim Taymans
dbd483cb46
resample: add resample.quality property
2020-02-14 20:19:47 +01:00
Wim Taymans
3fab544d3d
resample: add quality property
2020-02-14 20:16:50 +01:00
Wim Taymans
0023aac9b9
resample: add some more qualities
...
Clamp quality to available qualities.
0 is a valid quality
2020-02-14 18:00:49 +01:00
Wim Taymans
484d211119
spa-resample: quality 0 is a valid value.
2020-02-14 16:55:37 +01:00
Wim Taymans
046f41c31c
test: fix number of queued samples
...
The number of queued samples is twice the delay.
2020-02-14 10:52:21 +01:00
Wim Taymans
6603fab405
spa-resample: flush last samples
...
Use 0 samples to flush out the last samples from the resampler.
2020-02-14 09:50:49 +01:00
Wim Taymans
039f6751e1
resample: fix delay reporting
2020-02-14 09:50:35 +01:00
Wim Taymans
5df1c5ae40
resample-native: fix phase shift
2020-02-13 20:41:14 +01:00
Wim Taymans
7267a6bc34
resample: remove old debug variable
2020-02-13 20:11:39 +01:00
Wim Taymans
83f2e890ad
tools: add generic resampler tool
...
Add a tool that can convert the sample rate of an input file and
write it to an output file. This tool can be used to test the
resampler.
2020-02-13 16:46:03 +01:00
Wim Taymans
761119f640
resample: fix start position of new samples
...
When we finished processing the history it might be possible that we
need to skip some samples from the input. Implement this by adding
a start offset for the samples in the buffer.
2020-02-13 16:43:06 +01:00
Wim Taymans
192fee98a4
fmtconvert: suggest 2 buffers by default
...
When running pw_stream with async process, we need an extra buffer
to compensate for the thread switch.
2020-02-13 09:47:19 +01:00
Wim Taymans
454e743d1a
resample: make quality configurable
2020-02-12 13:31:03 +01:00
Wim Taymans
e68139079d
volume: set the right info flags for params
2020-02-11 12:12:49 +01:00
Wim Taymans
6085c0eaee
v4l2: use the buffer time as pts
...
Don't try to use the seq number as pts, just use the timestamp
returned from v4l2 if any so it can be matched against the clock.
2020-02-11 11:21:34 +01:00
Philipp Zabel
cb1071bce7
alsa-seq: fix seq_open error path
...
If snd_seq_open fails, do not call snd_seq_close(NULL).
2020-02-07 19:07:14 +01:00
Wim Taymans
42b1e163d7
tests: make benchmarks less busy
...
Reduce iterations of the benchmark so that can finish on slower
devices.
2020-02-07 15:22:35 +01:00
Wim Taymans
7e95897a3b
fmt-ops: fix test for big endian
2020-02-05 17:09:23 +01:00