ISubmixBufferListener::OnNewSubmixBuffer

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

Windows
MacOS
Linux

Override Hierarchy

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss