I have a Custom Event in BP (that is triggered from C++ using Broadcast from a Dynamic Multicast Delegate).
The event in BP has a PlayAnimation and a PlaySound2D. Sometimes (not all the time) the sound played is VERY loud, as if it has been played 2-4 times at once but then other times it sounds as expected.
Are multicast events safe for this?
What would trigger the event multiple times?
Anyone seen this?
I tried lowering the Audio Concurrency to 1 for these PlaySound2D events to see what effect it had and it “fixed” the “loud sound” bug, but sounds also started cutting off sounds and so it wasn’t satisfactory.
Have you confirmed that the PlaySound2D is actually being called multiple times, with PrintString nodes for instance?
I’d say if it does, that it is likely that the C++ event is being broadcast more than once. Have you checked that too? Again with AddOnScreenDebugMessages, for instance
I have found something. Although I broadcast only once the delegate finds two functions to invoke (both PlaySound2d with the same sfx) so I must have the created UI twice - somehow… I wil investigate further, thanks.