So I made a little test using Audaspace lowpass filter in a python script template, modified a little by myself (I'm new in python, so it is very possible that I made a mistake). Everything are working well, except when I try to change the Lowpass filter value using a Game Propertie modified in game with logic bricks. The idea is to change the lowpass filter for an effect in a videogame (e.g. underwater, behind wall).
Does anybody have a solution, it would be really helpfull.
import bge from bge import logic import aud cont = logic.getCurrentController() own = cont.owner logic.device = aud.device() soundpath = logic.expandPath('//Sounds/Engine.wav') sound = aud.Factory.file(soundpath) handle = logic.device.play(sound.lowpass(own["Amount"])) handle.volume = 1