I’m making a DSP c++ plugin to process 7.1 surround sound.
First, I copied source codes of SubmixEffectStereoDelay and renamed it.
Then, I imported a 7.1 wav file into the UE4(4.26), double clicked it with my submix added.
In OnProcessAudio function, I added a log to check out the input channel,
void FXXXSubmixEffect::OnProcessAudio(const FSoundEffectSubmixInputData& InData, FSoundEffectSubmixOutputData& OutData)
{
UE_LOG(XXXEditor, Warning, TEXT("FXXXSubmixEffect::OnProcessAudio %d"), InData.NumChannels);
After compiled and restarted the engine, I clicked play button of the 7.1 sound, the Output Log showed that the input channel is only 2, not 8.
So, how to get an 8-channel input to OnProcessAudio and output 2-channel signal?