Questions et réponses de la communauté

Bienvenue sur le forum de questions et réponses d'Audiokinetic, propulsé par la communauté. C'est l'endroit où les utilisateurs de Wwise et Strata s'entraident. Pour obtenir une aide directe de notre équipe, veuillez utiliser la page « Tickets de soutien ». Pour signaler un bug, utilisez l'option Bug Report dans l'Audiokinetic Launcher. (Veuillez noter que les rapports de bug soumis au forum questions-réponses seront rejetés. L'utilisation de notre système de rapport de bug dédié garantit que votre rapport est vu par les bonnes personnes et a les meilleures chances d'être corrigé.)

Pour obtenir rapidement les meilleures réponses, suivez ces conseils lorsque vous posez une question :

  • Soyez précis : qu'essayez-vous de réaliser ou quel est le problème spécifique que vous rencontrez ?
  • Pensez à inclure les détails importants : incluez des détails tels que les versions de Wwise et du moteur de jeu, le système d'exploitation, etc.
  • Expliquez ce que vous avez essayé de faire : indiquez aux autres les mesures que vous avez déjà prises pour essayer de résoudre le problème.
  • Concentrez-vous sur les faits : décrivez les aspects techniques de votre problème. Se concentrer sur le problème aide les autres personnes à trouver rapidement une solution.

+2 votes
Greetings,

Im trying to change the listener in our game from the camera, which is the default setting, to the character mesh. Any leads would help greatly. I should mention that I'm using UE 4.16.3 and Wwise 2017.1.2.6361 and I'm implementing Audio in C++.

And thank you.
dans General Discussion par Aissa B. (280 points)
edité par Aissa B.
Incredible that this has 1000 views but no answer after 3 years. I'm having this issue currently. Where if I add the character as the default listener and remove the CameraManager as a default listener. I get a crash in AkComponent's TickComponent function. Would like to get an answer for this.

2 Réponses

0 votes
 
Meilleure réponse
I just learned this today while fiddling around in the Wwise Adventure Game 301 certification course. I removed the Ak Audio Listener script from the Main Camera prefab and simply applied the same script to the Player model prefab and checked the "Is Default Listener" box. And in the Ak Game Obj script component (that is being automatically applied when adding the Ak Audio Listener) you should deselect "Environment Aware".
This seems to work for me. I ran around inside the Library section and it is clearly the Player that is the listener now - camera movement doesn't effect any audio.
par Robert E. (550 points)
sélectionné par Aissa B.
In the future please refrain from answering a question about Unreal Engine with an answer for Unity. There is no goddamn AkAudioListener script in Unreal. This answer is a complete non-answer.
+3 votes
You'll need to modify in C++ the function `UAkAudioDevice::OnActorSpawned`. This function gets bound to UWorld's OnActorSpawned delegate and that function checks to see if the spawned actor is a player camera manager owned by the local player, and if it is, it adds an AkComponent to the player camera manager and adds that component as a default listener. Don't know why tf people are responding with Unity answers...
par Mike P. (970 points)
...