mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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>
This commit is contained in:
parent
818db8f0b3
commit
3bd600741c
1 changed files with 2 additions and 1 deletions
|
@ -190,7 +190,8 @@ gst_audiolatency_init (GstAudioLatency * self)
|
|||
|
||||
/* Setup srcpad */
|
||||
self->audiosrc = gst_element_factory_make ("audiotestsrc", NULL);
|
||||
g_object_set (self->audiosrc, "wave", 8, "samplesperbuffer", 240, NULL);
|
||||
g_object_set (self->audiosrc, "wave", 8, "samplesperbuffer", 240,
|
||||
"is-live", TRUE, NULL);
|
||||
gst_bin_add (GST_BIN (self), self->audiosrc);
|
||||
|
||||
templ = gst_static_pad_template_get (&src_template);
|
||||
|
|
Loading…
Reference in a new issue