You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Deprecating voice processing as is not tested or needed. Current voice processing needs are handled in EOS with WebRTC. #rb Aaron.McLeran, Helen.Yang #jira UE-148715 #preflight 631a3e9ed31788ea3a59f214 [CL 21910441 by phil popp in ue5-main branch]
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SignalProcessingModule.h"
|
|
#include "Modules/ModuleManager.h"
|
|
#include "Features/IModularFeatures.h"
|
|
#include "DSP/FFTAlgorithm.h"
|
|
#include "DSP/ConvolutionAlgorithm.h"
|
|
#include "DSP/AudioFFT.h"
|
|
#include "VectorFFT.h"
|
|
#include "UniformPartitionConvolution.h"
|
|
|
|
namespace Audio
|
|
{
|
|
class FSignalProcessingModule : public IModuleInterface
|
|
{
|
|
FVectorFFTFactory VectorFFTAlgorithmFactory;
|
|
|
|
FUniformPartitionConvolutionFactory UniformPartitionConvolutionFactory;
|
|
|
|
public:
|
|
|
|
virtual void StartupModule() override
|
|
{
|
|
// FFT factories to register
|
|
IModularFeatures::Get().RegisterModularFeature(IFFTAlgorithmFactory::GetModularFeatureName(), &VectorFFTAlgorithmFactory);
|
|
|
|
// Convolution factories to register
|
|
IModularFeatures::Get().RegisterModularFeature(IConvolutionAlgorithmFactory::GetModularFeatureName(), &UniformPartitionConvolutionFactory);
|
|
}
|
|
|
|
virtual void ShutdownModule() override
|
|
{
|
|
// FFT Factories to unregister
|
|
IModularFeatures::Get().UnregisterModularFeature(IFFTAlgorithmFactory::GetModularFeatureName(), &VectorFFTAlgorithmFactory);
|
|
|
|
// Convolution factories to unregister
|
|
IModularFeatures::Get().UnregisterModularFeature(IConvolutionAlgorithmFactory::GetModularFeatureName(), &UniformPartitionConvolutionFactory);
|
|
}
|
|
};
|
|
}
|
|
|
|
DEFINE_LOG_CATEGORY(LogSignalProcessing);
|
|
|
|
IMPLEMENT_MODULE(Audio::FSignalProcessingModule, SignalProcessing);
|