USoundWave::GeneratePCMData

This is only used for DTYPE_Procedural audio.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Sound/SoundWave.h

Include

#include "Sound/SoundWave.h"

Syntax

virtual int32 GeneratePCMData
(
    uint8 * PCMData,
    const int32 SamplesNeeded
)

Remarks

This is only used for DTYPE_Procedural audio. It's recommended to use USynthComponent base class for procedurally generated sound vs overriding this function. If a new component is not feasible, consider using USoundWaveProcedural base class vs USoundWave base class since as it implements GeneratePCMData for you and you only need to return PCM data.

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