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.

0 votes
Using Wwise 2021.1.6.7774:
Specifying an AK_SpeakerVolumeMatrix callback for AK::SoundEngine::PostEvent:

Changes to the volume matrix within the callback no longer seem to be applied immediately, as they were in Wwise 2019.2.13.7577

Using the following code in the callback to force the volumes to 0 result in a first-pass click using wwise 2021, but works as expected (immediate silence) using Wwise 2019:

if (in_eType & AK_SpeakerVolumeMatrix)...

    AkSpeakerVolumeMatrixCallbackInfo* pVolumeCallbackInfo = static_cast<AkSpeakerVolumeMatrixCallbackInfo*>(io_pCallbackInfo);

    for (AkUInt32 uChannelIn = 0; uChannelIn < pVolumeCallbackInfo->inputConfig.uNumChannels; uChannelIn++)
    {
        AK::SpeakerVolumes::VectorPtr SpeakerVolumesForChannelIn = AK::SpeakerVolumes::Matrix::GetChannel(pVolumeCallbackInfo->pVolumes, uChannelIn, pVolumeCallbackInfo->outputConfig.uNumChannels);

        for (AkUInt32 uChannelOut = 0; uChannelOut < pVolumeCallbackInfo->outputConfig.uNumChannels; uChannelOut++)
        {
            SpeakerVolumesForChannelIn[uChannelOut] = 0.0f;
        }
    }
in General Discussion by Sserpenthraxus-fw (110 points)
If you believe this is a bug, I suggest you submit a Bug Report (https://www.audiokinetic.com/library/edge/?source=InstallGuide&id=reporting_bugs).
Note: the results above were from testing within the context of the latest Unreal integrations, corresponding to the Wwise versions mentioned.
Bug report submitted.
I'm happy to report this has been fixed in Wwise 2021.1.10:
WG-59298 Fixed: Changes to the volume matrix in the AK_SpeakerVolumeMatrix callback only take effect on the next audio frame.

Please sign-in or register to answer this question.

...