コミュニティQ&A

Audiokineticのコミュニティ主導のQ&Aフォーラムへようこそ。ここはWwiseとStrataのユーザのみなさまがお互いに協力し合う場です。弊社チームによる直接のサポートをご希望の場合はサポートチケットページをご利用ください。バグを報告するには、Audiokinetic LauncherのBug Reportオプションをご利用ください。(Q&AフォーラムではBug Reportを受け付けておりませんのでご注意ください。専用のBug Reportシステムをご利用いただくことで、バグの報告が適切な担当部門に届き、修正される可能性が高まります。)

最適な回答を迅速に得られるよう、ご質問を投稿される際は以下のヒントをご参考ください。

  • 具体的に示す:何を達成したいのか、またはどんな問題に直面しているのかを具体的に示してください。
  • 重要な詳細情報を含める:Wwiseとゲームエンジンのバージョンやご利用のOSなど詳細情報を記載してください。
  • 試したことを説明する:すでに試してみたトラブルシューティングの手順を教えてください。
  • 事実に焦点を当てる:問題の技術的な事実を記載してください。問題に焦点を当てることで、ほかのユーザのみなさまが解決策を迅速に見つけやすくなります。

+2 支持
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.
Aissa B. (280 ポイント) General Discussion
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

0 支持
 
ベストアンサー
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.
Robert E. (550 ポイント)
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 支持
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...
Mike P. (970 ポイント)
...