I am having trouble getting DSP effects on some sounds and not others.
It seems when I use the configureFilters function of the AudioManager, the FilterProperties get applied to ALL AudioManagers. For example:
import direct.directbase.DirectStart from direct.showbase.DirectObject import DirectObject from pandac.PandaModules import FilterProperties class Game(DirectObject): def __init__(self): self.accept('escape', __import__('sys').exit, ) fp = FilterProperties() fp.addDistort(0.8) base.sfxManagerList.configureFilters(fp) sound = loader.loadMusic('music.wav') sound.play() Game() run()
This will cause the distortion effect to modify sounds played by the music AudioManager.
I noticed that AudioSound has a configureFilters function as well, but from searching the forum it seems that it was never implemented.
As an aside, is there a “better” way to add a new AudioManager than:
myaudio = base.sfxManagerList.createAudioManager()
Edit: I believe the “proper” way to do this is:
from pandac.PandaModules import AudioManager myaudio = AudioManager.createAudioManager()