Skip to content

Commit

Permalink
$mol_audio_scheduled duration fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Dec 29, 2023
1 parent 8ac790b commit 10aa7cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion audio/demo/demo.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $mol_audio_demo $mol_example_small
title \WebAudio API example
Beep $mol_audio_room
play => beep_play
duration .1
duration 0.1
input /
<= Beep_vibe $mol_audio_vibe
freq 440
Expand Down
2 changes: 1 addition & 1 deletion audio/instrument/instrument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ namespace $ {

$mol_wire_solid()

const node = this.node()
const node = next === false ? this.node_raw() : this.node()

const prev = $mol_wire_probe( ()=> this.active() )
if( prev === next ) return next ?? false
Expand Down

0 comments on commit 10aa7cc

Please sign in to comment.