SoundVisualizations

Hello everyone, I am trying to use the SoundVisualizations module in c++. But i keep geting a linker error.

I add the SoundVisualizations to the PublicDependencyModuleNames

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay", "SoundVisualizations" });

In my cpp file i add #include <SoundVisualizationStatics.h>

I am using this function just trying to get it to build.

void AAudioVisualizer::GenerateFrequenciesArray()
{
	USoundVisualizationStatics::CalculateFrequencySpectrum(soundWave, false, 0.0f, 0.19, 20, spectrum);
}

soundWave and spectrum are in the .h file.

Am i missing something ?

Well, what’s the linker error?

Hey Thank you for your reply. This is the linker error i am getting.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "public: static void __cdecl USoundVisualizationStatics::CalculateFrequencySpectrum(class USoundWave *,int,float,float,int,class TArray<float,class FDefaultAllocator> &)" (?CalculateFrequencySpectrum@USoundVisualizationStatics@@SAXPEAVUSoundWave@@HMMHAEAV?$TArray@MVFDefaultAllocator@@@@@Z) referenced in function "public: void __cdecl AAudioVisualizer::GenerateFrequenciesArray(void)" (?GenerateFrequenciesArray@AAudioVisualizer@@QEAAXXZ)	Practicing	C:\Users\\OneDrive\Documents\Unreal Projects\Practicing\Intermediate\ProjectFiles\AudioVisualizer.cpp.obj	1

Have you enabled the plugin for your project?

Im having the same issue… was there a resolve for this?

Found the issue, at least the one i was having…

Go into the .h file of the plugin and change

class ISoundVisualizationsPlugin :
public IModuleInterface

to:

class SOUNDVISUALIZATIONS_API ISoundVisualizationsPlugin : public
IModuleInterface

Then rebuild the engine