Skip to content
Snippets Groups Projects
Commit ef93c9b1 authored by Kipp Cannon's avatar Kipp Cannon
Browse files

mkwhitened_multirate_src(): check for invalid width

parent 34ace623
No related branches found
No related tags found
No related merge requests found
......@@ -294,8 +294,10 @@ def mkwhitened_multirate_src(pipeline, src, rates, instrument, psd = None, psd_f
head = pipeparts.mkaudioconvert(pipeline, head)
if width == 64:
head = pipeparts.mkcapsfilter(pipeline, head, "audio/x-raw, rate=%d, format=%s" % (max(rates), GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F64)))
else:
elif width == 32:
head = pipeparts.mkcapsfilter(pipeline, head, "audio/x-raw, rate=%d, format=%s" % (max(rates), GstAudio.AudioFormat.to_string(GstAudio.AudioFormat.F32)))
else:
raise ValueError("invalid width: %d" % width)
head = pipeparts.mkchecktimestamps(pipeline, head, "%s_timestamps_%d_whitehoft" % (instrument, max(rates)))
#
......
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