Hello, I am coding a small audio manager for a scene in a supermarket.
My manager holds a list of objects containing audio sources, which are constantly playing a song. At specific time intervals the manager adds a second AudioSource ( to the same GameObject ) which plays a short announcement. The new audio source is then destroyed at the end of the announcement.
Each audio source contains an AudioHighPassFilter, which works just fine for the song, but as soon as the announcement AudioSource is created, I get this warning:
Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource.
UnityEngine.GameObject:AddComponent(String)
After the announcement has finished playing, the filter does not work anymore.
Any idea on how to solve it?