SpawnSoundAttached - IsAudibleSimple location problem
I'm trying to play simple SoundCue. But sometimes it is not working. I debugged code and I think found the problem.
When I calling SpawnSoundAttached with KeepRelativeOffset IsAudibleSimple returning false and my sound is not playing.
Here you can see, FAudioDevice::CreateComponent getting Relative TestLocation instead of World and inside this function "IsAudibleSimple" calling with RelativeLocation instead of WorldLocation.
I hope explained well because of my english.
So running some test with your set up, I think I found the source of your issue. I was able to reproduce what you are reporting, using the Spawn Sound Attached node in blueprints at the location 50,000x50,000x50,000, and playing a sound less than 1 second.
Be sure your sound does not have attenuation settings applied (Untick Attenuate). See the below images for reference.
Spawn Player Controller
Play Sound Attached
As soon as I checked the 'Attenuate' option on the Sound Cue I am unable to hear the sound upon pressing play in my level. However, if I uncheck 'Attenuate' within the 'Sound Cue', the sound plays just fine.
answered Nov 11 '15 at 04:46 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here