コミュニティQ&A

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

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

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

0 支持
I have a simple scene (well the scene isn't simple, but ambient sounds on it are) containing 3 ambient sounds. Each of those is random container containing a looped sound. Each of those containers use the same attenuation set controlling volume and spread. Their range is set in away preventing those attenuation spheres not to overlap. When a listener moves between them, their volume gradually increase and panning changes. With the exception of one of those sound sources which is heard no matter where the listener is - the sound is heard everywhere whereas other sources are only audible if the listener enters their attenuation spheres.

Why one of those sounds behave differently when all sounds use the same settings for the attenuation? Do ambient sound sources require any other components beside Ak Ambient and Ak Game Obj? Does Unity integration allow to track objects in Game Object 3D viewer?

Update: I did some further investigation and it seems that one sound object that is affected doesn't update positioning when the listener's position change (two other objects on the scene work correctly). I can pause the game and move the offending sound object on the scene and notice attenuation and positioning changes. But when I move the listener, the sound stays the same.
Maciej M. (510 ポイント) General Discussion
Maciej M. 編集

回答 1

0 支持
 
ベストアンサー
Good catch, there's a bug in 2015.1 with listener management in Unity.  We'll be fixing it in 2015.1.2, releasing in the coming weeks.
Mathieu J. (Audiokinetic) (7.1k ポイント)
Maciej M. 選択
Is this fixed in 2015.1.2? I don't see anything related in the changelog. Also, now my remaining positioned sounds don't play correctly after update, but I also did some significant changes in the scene so I may also responsible for the problems.
This should be fixed in 2015.1.2, as stated in the Unity integration release notes (here: https://www.audiokinetic.com/library/2015.1.2_5457/?source=Unity&id=pg__releasenotes.html ).

The migration to 2015.1.2 has a step to set the listener of AkGameObj components to L0. If you are still encountering problems, make sure to properly set the Listener of your AkGameObj components in their inspector.
Okay, I got everything running but the problem has not been fixed. I have 3 localized sound sources in the scene, all using the same attenuation settings. Two of those work properly - they are heard only when the listener is withing their max distance. One is heard everywhere and is not reacting to the listener's movement.

I used Game Object Profiler and added watches for those 3 objects and listener to verify that what I see in the game matches what Wwise sees. The one of the objects only update it's position related stuff if I move the object - it remains oblivious to the listener's position changes.
When connected to your game, go to the "Listeners" tab in the Advanced Profiler window (under the Profiler layout). Find the GameObject causing you trouble. Are other listeners than L0 checked for this game object? If this is the case, you need to find the associated GameObject in Unity. In the inspector window, look for the AkGameObj component. Under the "Listeners" dropdown, make sure only "L0" is checked.
You were right, the troubling object had Everything as the listener. But I've encountered another problem - my Listener component get removed when the game is run and everythin starts to work incorrectly. If I save the level with listener removed I get that situation permanent.

Does any code manipulate listeners? I remember some option to automatically add listener to the camera but I can't find it now. Anyway, this is ultra annoying as my listener isn't attached to the camera and I don't want it to be removed.
...