Problem with using FAudioDevice

I’m trying to do a simple access to FAudioDevice and I’m getting the error “pointer to incomplete class type is not allowed”

Here’s the code:

float UMasterSound::getMasterSoundLevel(){
	FAudioDevice* Device = GEngine->GetAudioDevice();
	if (!Device)
		return 0;

	return Device->TransientMasterVolume;
}

Trying to access anything in Device gives me the error above. I’m not exactly sure what is means and I have no idea how to fix it. Any help would be appreciated.

Did you try adding the following to the top of your CPP file:

#include "AudioDevice.h"

This worked for me.

Wow… I was sure I tried this and it didn’t work, but I tried it again and it works. Thanks a ton!