Skip to content

Commit

Permalink
SignalFlowOutputDevice: Check patch is successfully added
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Sep 15, 2024
1 parent 72f3a6c commit 453aa28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isobar/io/signalflow/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def create(self, patch_spec, patch_params, output=None):
patch.set_auto_free(True)

if output:
output.add_input(patch)
patch.add_to_graph()
if patch.add_to_graph():
output.add_input(patch)
else:
self.graph.play(patch)

Expand Down

0 comments on commit 453aa28

Please sign in to comment.