Get sound position(time) C++

I did see someone suggest using that method in blueprint. I wasn’t sure if there is another method in C++. Thank you for the answer.