menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票
We have some looping sounds that we play via PostEventAtLocation.  It doesn't appear that the audio engine automatically stops these events on destruction.  When the event is destroyed, the streaming handle is freed, resulting in the sound data being freed from underneath the decoder thread, often resulting in a crash in the vorbis decoder.  I added this function to automatically stop playback when it's about to be destroyed, and it does not appear to crash anymore.

 

void UAkAudioEvent::BeginDestroy()
{
    if (auto* audioDevice = FAkAudioDevice::Get())
    {
        audioDevice->StopEventID(audioDevice->GetIDFromString(GetName()));
    }

    Super::BeginDestroy();
}

 

I'm new to wwise, but it seems correct to me.  Your thoughts?
分类:General Discussion | 用户: David B. (180 分)

Please sign-in or register to answer this question.

...