AudioComponent Play and Stop sounds in code

I’m trying to find information on how to create audio objects in code instead of in blueprints. I need to work with procedural audio a bit, and what I want I don’t think I can do in BP. Browsing through the API, I can’t seem to find simple Play and Stop functions. I thought they were part of the audio component?

I feel like some of the documentation online is missing or maybe I’m overlooking something. I can’t seem to find examples online using code.

And, I don’t really wish to use a middleware like FMOD, because I couldn’t figure out how to get it working in code.

I had the same problem and I ended up using FMOD in the end. UE4 doesn’t have support for audio streaming. There’s no easy way to do procedural audio anyway, so I suggest biting the bullet. FMOD isn’t as hard as it looks.

Here’s my project, that should give you an idea, where to start: GitHub - Banbury/UE4Elias: An Unreal Engine 4 plugin for ELIAS.