Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+3 votes
Hi all!

I'm trying to play two sounds when a button is pushed, one is a foley sound for button click and the other is some sound (let's assume a song), with a tracked hand motion interface in my UE4 scene. When interacting with the button we want the click sound to not be occluded at all by our hands but the music should be. The simplest way I can think of to get this effect is to add the hands to the list of ignored actors of the AKComponent which handles the click sound. The problem I have with this method is that it requires me to make changes to the AKComponent class so I can expose the array of IgnoreActors to add the hands to it. So my question is this:

Is there built in functionality to ignore actors in occlusion calculations or will I have to modify the integration code?
in General Discussion by Philip R. (130 points)

1 Answer

0 votes
You could create two AkComponents; one for your button sound and one for your song. Then, in Blueprints, you can set the occlusion refresh interval to 0 on the AkComponent on which you wish to disable occlusion.
by Benoit S. (Audiokinetic) (16.0k points)
Hi Benoit, thanks for the response!

That sounds like a good plan but there are two problems I have with that solution for my situation. The foley sounds are played using the "Post Event at Location" node so I'm not entirely sure if I can even get a reference to them. The other is that would disable ALL occlusion, I'd prefer it if the occlusion only ignored the hands.
In that case, you're right in saying that the only way to accomplish this is to modify the code to AkComponent. I'll add the request to our backlog, though, as it is a really useful feature to have.

By the way, since the 4.10 integration, there is a "Spawn Ak Component at location" available. This allows you to post an event at a specific location, but also grabbing a reference to the component playing the sound. This would address your first problem, but unfortunately not the second.
...