ISubmixBufferListener::OnNewSubmixBuffer

Called when a new buffer has been rendered for a given submix

Windows
MacOS
Linux

Override Hierarchy

ISubmixBufferListener::OnNewSubmixBuffer()

FGameplayMediaEncoder::OnNewSubmixBuffer()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AudioDevice.h

Include

#include "AudioDevice.h"

Syntax

void OnNewSubmixBuffer
(
    const USoundSubmix * OwningSubmix,
    float * AudioData,
    int32 NumSamples,
    int32 NumChannels,
    const int32 SampleRate,
    double AudioClock
)

Remarks

Called when a new buffer has been rendered for a given submix

Parameters

Parameter

Description

OwningSubmix

The submix object which has rendered a new buffer

AudioData

Ptr to the audio buffer

NumSamples

The number of audio samples in the audio buffer

NumChannels

The number of channels of audio in the buffer (e.g. 2 for stereo, 6 for 5.1, etc)

SampleRate

The sample rate of the audio buffer

AudioClock

Double audio clock value, from start of audio rendering.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback