Change Audio Listener Position?

Hi there,
probably a very basic question.

Which component / actor is responsible for where all the sounds can be heard from? I am developing a top down shooter where the camera boom is quite far away positioned from the player, so fire near the player is extremely silent. I need to change this so all the sounds can be heard relative to the player, not the camera. I hope somebody has a solution for this!

Thanks for reading

The virtual function APlayerController::GetAudioListenerPosition is responsible for this. You must subclass player controller with your own class and override this function to change the location. There isn’t currently a way to do this from blueprints though it is on the list of things to expose.

Thanks a lot

Hi,
six months on … can you give us any kind of timeline for when audiolistener position will be exposed in Blueprints ?
Thanks.

Not sure how long it’s been there, but there is a blueprint function now you can use to fix this.

It’s in PlayerController called Set Audio Listener Override. You can set a world location/rotation for the audio listening, or you can attach the listening to a scenecomponent (e.g. the mesh of your controlled pawn lets the pawn be the listener rather than the camera).

1 Like

You may know already since this is an old comment, but it’s been implemented and the player controller has a Set Audio Listener Override node. See my post below.

Hey, I managed to find the Audio Listener Override, but I can’t work out how to attach my character’s mesh to the “Attach to Component” part.

Can you help me out?

EDIT: Nevermind. I found out how to do it. I created it in my Character blueprint, not my Controller blueprint.