Seungha Yang
4d1101d335
audiolatency: Expose samplesperbuffer property
...
... for user to be able to set the number of required samples.
For instance, our default value is 240 samples
(about 5ms latency in case that sample rate is 48000), which might
be larger than actual buffer size of audio capture device.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2307 >
2021-07-26 20:13:03 +09:00
Nirbheek Chauhan
0bde6bf750
audiolatency: Handle audio buffers with invalid duration
...
pipewiresrc outputs audio buffers without a valid duration, so we need
to calculate it manually in that case.
Upstream issue: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1438
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2419 >
2021-07-23 12:19:33 +00:00
Seungha Yang
1f743c8d84
audiolatency: Drop incoming downstream stick events
...
stream-start, caps, and segment events will be pushed by internal
audiotestsrc element.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2265 >
2021-05-20 15:50:55 +09:00
Seungha Yang
3bd600741c
audiolatency: Use live mode audiotestsrc
...
Expected use case of audiolatency element is that mimic audio capture
device which is most likely live source. So audiolatency element
should use live mode as well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2265 >
2021-05-20 15:41:50 +09:00
Stéphane Cerveau
891be51105
gst-plugins: allow per feature registration
...
Split plugin into features including
dynamic types which can be indiviually
registered during a static build.
More details here:
https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/199
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/661
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2110 >
2021-04-11 16:16:55 +00:00
Nirbheek Chauhan
8649cef462
audiolatency: Fix wave detection in buffers
...
-1/1000 is 0, so we were *always* detecting a buffer.
2018-04-03 23:57:20 +05:30
Nirbheek Chauhan
2ee16a5810
audiolatency: Avoid bogus pts values while starting
2018-04-03 23:57:20 +05:30
Nirbheek Chauhan
5089ab3428
audiolatency: Fix string format specifier and use microseconds everywhere
...
Should fix warnings or build errors on 32-bit platforms and on Windows.
Also clarify in logging that all timestamps are in microseconds.
2018-02-28 00:59:42 +05:30
Nirbheek Chauhan
307865ec7a
audiolatency: Fix cerbero build failure
...
Average latency is a 64-bit integer.
https://ci.gstreamer.net/job/GStreamer-master/9962/
2018-02-28 00:41:20 +05:30
Nirbheek Chauhan
3fb81536ce
audiolatency: New plugin for measuring audio latency
...
Measures the audio latency between the source pad and the sink pad by
outputting period ticks on the source pad and measuring how long they
take to arrive on the sink pad.
Very useful for quantifying latency improvements in audio pipelines.
This plugin was particularly useful during development of the
low-latency features of the wasapi plugin.
https://bugzilla.gnome.org/show_bug.cgi?id=793839
2018-02-27 23:54:28 +05:30