Skip to content
Snippets Groups Projects
Commit 4d42f3d2 authored by Patrick Godwin's avatar Patrick Godwin
Browse files

snax.multirate_datasource.py: add queue after whitener to avoid pipeline...

snax.multirate_datasource.py: add queue after whitener to avoid pipeline hanging after segment boundaries
parent 93b8dfa3
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,12 @@ def mkwhitened_multirate_src(pipeline, src, rates, native_rate, instrument, psd
firelem.set_property("fir-matrix", numpy.array(kernel, ndmin = 2))
whiten.connect_after("notify::mean-psd", set_fir_psd, head, reference_psd.PSDFirKernel())
#
# extra queue to deal with gaps produced by segmentsrc
#
head = pipeparts.mkqueue(pipeline, head, max_size_buffers = 0, max_size_bytes = 0, max_size_time = Gst.SECOND * (psd_fft_length + 2))
#
# Drop initial data to let the PSD settle
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment