Audiokinetic의 커뮤니티 Q&A는 사용자가 Wwise와 Strata 커뮤니티 내에서 서로 질문과 답변을 하는 포럼입니다. Audiokinetic의 기술 지원팀에게 문의하고 싶으신 경우 지원 티켓 페이지를 사용해주세요.

0 투표

I am creating a sink plugin that needs custom data.

I have a simple console application with the following code to send some custom data:

/* Preceding initialisation*/

    MyCustomDataStruct myCustomData;
    const auto result = AK::SoundEngine::SendPluginCustomGameData(
        AK::BUSSES::MY_BUS,
        AK_INVALID_GAME_OBJECT,
        AkPluginTypeSink,
        MY_COMPANY_ID,
        MY_PLUGIN_ID,
        &myCustomData,
        sizeof(MyCustomDataStruct)); 

In my plugin MyAudioDeviceSink is derived from AK::IAkSinkPlugin:

void MyAudioDeviceSink::Consume(AkAudioBuffer* inputBuffer, AkRamp gain)
{
    void* myCustomData = nullptr;
    AkUInt32 size = 0;
    context->GetPluginCustomGameData(myCustomData, size);

/* rest of function */

}

SendPluginCustomGameData returns AK_Success, but I am finding that myCustomData is always null in my plugin. I must be missing something obvious but I can't see what I am doing wrong. Any suggestions? Is there 'custom data' example anywhere?

General Discussion Julian (100 포인트) 로 부터
Did you find out an example of this? i'm trying to do a pretty similar thing

Please sign-in or register to answer this question.

...