コミュニティQ&A

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

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

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

+1 支持
I'm trying to get music to continue playing between levels.

Is there a recommended way of doing this with Wwise and UE4? Currently all AkComponents are destroyed on changing levels. Is there something else I should be using?
Ben H. (250 ポイント) General Discussion

回答 2

0 支持
Hi you need a prog for you problem.

You need to find a way to modify your ak event and turn it to persistent. With this option your music will continue to playback between all your levels.

After that uncheck auto load option in your music snk and call your snk in code.
Jérémy G. (180 ポイント)
0 支持
 
ベストアンサー
In the end the only way we solved this was by creating an Actor that was not owned by the level, so it was not destroyed when we changed maps. We added a listener and emitter onto the actor and set them so they only emitted and listened to each other.

It was a huge pain in the ass.
Ben H. (250 ポイント)
I am glad we're not the only ones struggling with this.

Rather than creating a global actor (which sounds a bit scary!) I just created a standalone ak game object, with itself as a listener, to achieve the same thing.

However, there was one extra bit of logic necessary to get it to work, which took rather a long time to track down, which is that (with our setup, at least) it is necessary for there to be a spatial audio listener active for audio to be audible. During level transitions there is no spatial audio listener in the default UE4 plugin. I got around this by setting my aforementioned standalone ak game object as the spatial audio listener at the point where the regular spatial audio listener is removed/destroyed.

Hopefully this helps out someone else in the same situation :)
How did you get around the UAkGameObject::AllowAudioPlayback() check?
if your standalone ak game object isn't attached to a world, that should stop it from posting any events.
...