Right now I have the audio playing but since it’s a short audio file, it is just played once and then it stops.
I was wondering whether there is a way to play the audio in each frame using the existed “tick” function, then the sound is always played.
Can you explain why you want it to play every single frame? As in 60 times a second?
Even if it was something like static noise you’d be far, far better off repeating it inside an audio clip until it’s a few seconds long and then playing that back instead.
Anyway, one of the main ways I figure out how to do things in code is by doing them in blueprints first. It’s the same framework but blueprint examples are easier to come by and easier to figure out. Then you implement the same thing in code using the same members and functions.