Including the audio capture component (new audio engine)

Hey y’all, I’m trying to include this in my cpp player controller: UAudioCaptureComponent | Unreal Engine Documentation

By doing

#include "AudioCaptureComponent.h"

But I’m getting this error: "cannot open source file “AudioCaptureComponent.h”

This is super easy to set up in blueprints but for some reason it’s a huge pain to find what to include in cpp. Where should I include this thing from?

2 Likes

For those who’d also end up here in the future as I have:

In your project’s .Build.cs file add "AudioCapture" to the PublicDependencyModuleNames

1 Like

I did but the issue persists. :confused: