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.

PSA: How to check if an ak event/ ak component is playing in Unreal C++

+2 votes
This isn't a question but i tried googling this stuff and I didn't get anything useful. Eventually, I figured it out so why not share it with people who might need it.

Basically there's a function on UAkComponent/UAkAudioEvent that has a HasActiveEvents() bool which fits well into any if else statement.

 

if (Actor->AkComponent->HasActiveEvents())

    UE_LOG(LogTemp, Warning, TEXT("Playing Event!"));

else

    UE_LOG(LogTemp, Warning, TEXT("No Event Playing"));

 

UE 4.24, Wwise v2019.2.2.2725
asked Jun 2, 2020 in General Discussion by Alejandro P. (230 points)

Please sign-in or register to answer this question.

...