diff --git a/leenkx/Sources/leenkx/logicnode/PlaySoundRawNode.hx b/leenkx/Sources/leenkx/logicnode/PlaySoundRawNode.hx index d8c1dde..68661d9 100644 --- a/leenkx/Sources/leenkx/logicnode/PlaySoundRawNode.hx +++ b/leenkx/Sources/leenkx/logicnode/PlaySoundRawNode.hx @@ -16,15 +16,16 @@ class PlaySoundRawNode extends LogicNode { public var property5: Bool; public var property6: String; - + #if lnx_audio var sound: kha.Sound = null; var channel: kha.audio1.AudioChannel = null; - + #end public function new(tree: LogicTree) { super(tree); } override function run(from: Int) { + #if lnx_audio switch (from) { case Play: if (property6 == 'Sound' ? sound == null : true) { @@ -63,6 +64,10 @@ class PlaySoundRawNode extends LogicNode { case UpdateVolume: if (channel != null) channel.volume = inputs[4].get(); } + #end + #if !lnx_audio + runOutput(0); + #end } function onUpdate() {