Using a Single Speaker to Play Multiple Sounds

Hi,

I’m wondering if it is possible to play multiple sounds from a single speaker. The reason is I have characters speaking several lines of dialog, which means I would need dozens of speakers parented the characters, which would be cumbersome. I could use several Play Sound nodes, but the sound wouldn’t be location specific (louder when closer, etc). Does anyone have any ideas on how the get around this?

Kind regards

Hi,

Well playSoundNode was modified to allow exactly that.

You could try it with a haxe trait and replace the sound file, it should be possible I guess:

There is also another sound library called aura that extends speakers and works with armory3d:

Good luck

yeah it works… well maybe it would be best to make the same modification the playSoundNode has.

Also there is no way to change volume with a node…

Hey Lapiz,

Thanks for getting back to me. Yeah if I can have a trait that switches out the speaker sound file and then plays it that would be ideal. Then I could make this functionality a custom node. Do you know where the modified playSoundNode is or what the Haxe trait might look like?

The Aura engine looks useful, but I don’t really understand how to use it - I’m not much of a programmer.

Regards

Youre in luck. Its already been merged.You can update this files in your armory folders or wait for the next month release.

Hope this helps you

That’s great news! I can wait until the release. Thanks for all the help.