Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

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?

in General Discussion by Julian (100 points)
Did you find out an example of this? i'm trying to do a pretty similar thing
I think there may be sth wrong with the sending part, cuase the getting part just gets whatever you send. If you are not setting right, it wont show anything. Please check the busID or bus object ID, these two params have no explaination in the document.

Please sign-in or register to answer this question.

...