From 21c2abe67c369b8beee0831467793a48a3ea65b6 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 3 Apr 2025 12:35:51 +0000 Subject: [PATCH] Update leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx --- leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx b/leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx index 8c1a567e..0a30a588 100644 --- a/leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx +++ b/leenkx/Sources/leenkx/logicnode/SetVolumeSoundNode.hx @@ -1,7 +1,7 @@ package leenkx.logicnode; - +#if lnx_audio import iron.object.SpeakerObject; - +#end class SetVolumeSoundNode extends LogicNode { public function new(tree: LogicTree) { @@ -9,9 +9,11 @@ class SetVolumeSoundNode extends LogicNode { } override function run(from: Int) { + #if lnx_audio var object: SpeakerObject = cast(inputs[1].get(), SpeakerObject); if (object == null) return; object.setVolume(inputs[2].get()); + #end runOutput(0); } }