Problem using ISubmixBufferListener and OnNewSubmixBuffer Callback

When using the ISubmixBufferListener, I’m not getting the expected results from the OnNewSubmixBufferCallback.

I’ve registered a custom class that implements ISubmixBufferListener to the FMixerDevice.
If I pass in a specific Submix when calling RegisterSubmixBufferListener, the OnNewSubmixBuffer callback doesn’t seem to get called.
Steppng through the Registering function it picks up the right submix, but It looks like the Submix graph might be null?

If I don’t pass a specifc Submix, i.e leave it null so it defaults to registering the DefaultMasterSubmix, the OnNewSubmixBuffer callback gets called regularly - however the AudioData is just 0s. It picks up the NumChannels, NumSamples and AudioClock though.

I’m a bit stuck now, any ideas on what I may have done wrong?

Hi, I got the same problem that the buffer values always be 0.
“in my case” it turn out that I’m using the wrong AudioDevice.

change
AudioDevice = GEngine->GetMainAudioDevice().GetAudioDevice();

to
AudioDevice = GEngine->GetActiveAudioDevice().GetAudioDevice();