コミュニティQ&A

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

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

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

+1 支持
So I've been rewriting a lot of code after we integrated Wwise into our project and I hit a dead end once I tried implementing the marker functionality, the problem stems from trying to cast the UAkCallbackInfo* Parameter in the PostEvent Callback function (which looks like this void SomeFunction(EAkCallbackType Type, UAkCallbackInfo* Info)) to a UAkMarkerCallbackInfo* which just throws me an error.

After looking around the internet for a around a day I decided to give up on looking and decided to come here to hopefully get some answers on what I might be doing wrong.

the error is the following "unresolved external symbol "private: static class UClass * __cdecl UAkMarkerCallbackInfo::GetPrivateStaticClass(void)" (?GetPrivateStaticClass@UAkMarkerCallbackInfo@@CAPEAVUClass@@XZ)" and I can't seem to find any info on this specific scenario. Any help would be much appreciated.
Tumi G. (110 ポイント) General Discussion

回答 2

0 支持
I am currently looking for the same answer, I noticed it pops the same error whenever you cast this to child class of UAkEventCallbackInfo.
omnisepher (190 ポイント)
+1 支持

For anyone that is looking for an answer to this problem, the issue both of these commenters are running into is due to UAkMarkerCallbackInfo not having the AKAUDIO_API macro after the class specifier. That macro allows the class to be exported out of the plugin and used in the rest of your project. To solve the unresolved externals error just add AKAUDIO_API, the declaration should look like this then -
class AKAUDIO_API UAkMarkerCallbackInfo : public UAkEventCallbackInfo

Doing that will allow you to cast to UAkMarkerCallbackInfo outside of the Wwise plugin.

Oliver Collier (200 ポイント)
Thanks for the solution! Let's hope AudioKinetic fixes this soon so we don't have to merge this every time we update the SDK.
...