コミュニティQ&A

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

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

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

+2 支持
Is libSceAudio3d enabled by default with the UE4 plugin?  If not, what steps are necessary to get it enabled?

It's pretty clear that HRTF is not working in our game, and our log output appears to corroborate it:
>AK Error: Could not find plugin dynamic library SceAudio3d

I've been digging around and it seems like SceAudio3dSink needs to enabled and registered, but it doesn't appear to be registered by default (nor even included as part of the integration process for UE4).  Am I on the right track here, or there is something else we're missing/doing wrong?

Thanks,

Jared
Jared N. (120 ポイント) General Discussion
We were running into the same issue as well. We were able to patch around the SceAudio3d prx not loading by making sure the "/app0/prx" folder was included in initSettings.szPluginDLLPath and that the SceAudio3d.prx file got coped into <GameName>/Build/PS4/prx.

#if PLATFORM_PS4
    FString PluginDLLPath(TEXT("/app0/prx/"));
#ifndef AK_SUPPORT_WCHAR
    AkOSChar * pszPluginDLLPath = TCHAR_TO_ANSI(*PluginDLLPath);
#else
    AkOSChar * pszPluginDLLPath = 0;
    CONVERT_WIDE_TO_OSCHAR(*PluginDLLPath, pszPluginDLLPath);
#endif
    initSettings.szPluginDLLPath = pszPluginDLLPath;
#endif

But then wwise still doesn't appear to open the 3d audio port like it does when you run the 3d audio sample from the SDK PS4 SDK (ORBIS SDKs\4.000\target\samples\sample_code\audio_video\api_audio3d\).

Rain 3d audio console output:

19:40:43 [audiod/a3d] port.cc:212 - Notified of creation of shm /audio3d-port-0x65-0 of size 379456
19:40:43 [audiod/a3d] morpheus.cc:225 - MorpheusPluginPortOpen...
19:40:43 [audiod/a3d] sparkuplus.cc:184 - SparkUplusPluginPortOpen - S3DA_CPU_OPTIMIZED (0)...
19:40:43 [audiod/a3d] iothread.cc:46 - IoThread (MorpheusIo) iHandle=0 started.
19:40:43 [audiod/a3d] sparkuplus.cc:184 - SparkUplusPluginPortOpen - S3DA_CPU_OPTIMIZED (1)...
19:40:43 [audiod/a3d] devel.cc:195 - DevelPluginPortOpen
19:40:43 [audiod/a3d] iothread.cc:46 - IoThread (SparkUplusIo) iHandle=-1 started.
19:40:43 [audiod/a3d] iothread.cc:46 - IoThread (SparkUplusIo) iHandle=-1 started.
19:40:43 [audiod/a3d] iothread.cc:46 - IoThread (NetworkIo) iHandle=-1173159408 started.
19:40:43 [audiod/a3d] iothread.cc:84 - IoThread (MorpheusIo) detected connection.
19:40:43 [audiod/a3d] module.cc:309 - sceAudiodA3dModuleNotify!
19:40:43 [audiod/a3d] devel.cc:84 - Connecting to 10.0.0.221...
19:40:43 [audiod/a3d] morpheus.cc:311 - Setting up Morpheus for Legacy mode
19:40:43 [audiod/a3d] process.cc:110 - Output via plugin 0
19:40:43 [audiod/a3d] devel.cc:98 - Connecting to 10.0.0.221... failed with error 0x3d!
19:40:43 [audiod/a3d] process.cc:267 (throttled) - No data!
19:40:43 [audiod/a3d] process.cc:129 (throttled) - No data!

By comparison, our game's 3d audio console output:

23:35:15    [audiod/a3d] event.cc:187 - --> SceAudiodA3dEventWorkModeParam(4 0)
23:35:15    [audiod/a3d] morpheus.cc:561 - sceAudiodA3dMorpheusNotify, bAttached=1 bLegacyMode=0
23:35:15    [audiod/a3d] module.cc:307 - FORCE sceAudiodA3dModuleNotify!
23:35:15    [audiod/a3d] morpheus.cc:321 - Setting up Morpheus for Native mode

I can get the logging I would expect if I manualy open the 3d audio port:

#if PLATFORM_PS4
    {
        // Load audio3d Module
        int32 Ret = sceSysmoduleLoadModule(SCE_SYSMODULE_AUDIO_3D);
        checkf(Ret == SCE_OK, TEXT("sceSysmoduleLoadModule(SCE_SYSMODULE_AUDIO_3D) failed: 0x%x\n"), Ret);
        // Initialize Audio 3D
        Ret = sceAudio3dInitialize(0);
        checkf(Ret == SCE_OK, TEXT("sceAudio3dInitialize failed: 0x%x\n"), Ret);
    }

    SceAudio3dOpenParameters sParameters;

    sceAudio3dGetDefaultOpenParameters(&sParameters);
    sParameters.uiGranularity = 1024;
    sParameters.uiMaxObjects = 32;
    sParameters.uiQueueDepth = 1;

    SceAudio3dPortId uiPort;
    int iRet = sceAudio3dPortOpen(SCE_USER_SERVICE_USER_ID_SYSTEM, &sParameters, &uiPort);
    if (iRet) {
        UE_LOG(LogInit, Warning, TEXT("sceAudio3dPortOpen() failed: 0x%x"), iRet);
    }
#endif

We have the "SCE Audio 3d bed" setup in our wwise project config, but no dice so far.

Please sign-in or register to answer this question.

...