Fix port overrides for faust output ports.

main
Ben Niemann 2021-12-31 00:10:26 +01:00
parent ab9511e2f1
commit beaa46d9ec
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ if args.faust_json:
else:
port['name'] = 'out%d' % port_num
if port['name'] in port_overrides:
port.update(port_overrides[port['name']])
for field in REQUIRED_PORT_FIELDS:
if not field in port:
raise ValueError("Missing field '%s' for output port %d" % (field, port_num))