Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Sink plugin initialization

0 votes
Hi, I register my sink plugin using this code;

    AkInitSettings initSettings;
    AkPlatformInitSettings platformInitSettings;
    AK::SoundEngine::GetDefaultInitSettings( initSettings );
    AK::SoundEngine::GetDefaultPlatformInitSettings( platformInitSettings );

    initSettings.uNumSamplesPerFrame = 256;
    initSettings.settingsMainOutput.pfSinkPluginFactory = CreateMySink;

 

    if ( AK::SoundEngine::Init( &initSettings, &platformInitSettings ) != AK_Success )
    {
        return false;
    }

 

"CreateMySink" runs normally, no errors... moments later when I try to load banks the audio engine sits there and can never load a single bank (except for init.bnk).  Is there an extra step I have to take to make my sink plugin work with the banks?  thanks.  I have to mention that when I remove "initSettings.settingsMainOutput.pfSinkPluginFactory = CreateMySink;" everything runs fine.  

 

thanks!
asked Mar 8, 2016 in General Discussion by Rafael S. (240 points)

1 Answer

0 votes
Within your plugin, make sure you call the function m_pSinkPluginContext->SignalAudioThread().  For an example look at the AkSink sample project where they make use of this call.
answered Mar 14, 2016 by Rafael S. (240 points)
...