USoundWaveProcedural

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

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

Include

#include "Sound/SoundWaveProcedural.h"

Syntax

class USoundWaveProcedural : public USoundWave

Variables

Name Description

Protected variable

int32

 

NumBufferUnderrunSamples

Number of samples to pad with 0 if there isn't enough audio available.

Protected variable

int32

 

NumSamplesToGeneratePerCallback

The number of PCM samples we want to generate. This can't be larger than SamplesNeeded in GeneratePCMData callback, but can be less.

Public variable

FOnSoundWavePro...

 

OnSoundWaveProceduralUnderflow

Called when GeneratePCMData is called but not enough data is available.

Public variable

int32

 

SampleByteSize

Size in bytes of a single sample of audio in the procedural audio buffer.

Constructors

Name Description

Public function

USoundWaveProcedural

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function

int32

 

GetAvailableAudioByteCount()

Query bytes queued for playback

Public function Virtual

int32

 

OnGeneratePCMAudio

(
    TArray< uint8 >& OutAudio,
    int32 NumSamples
)

Virtual function to generate PCM audio from the audio render thread.

Public function

void

 

QueueAudio

(
    const uint8* AudioData,
    const int32 BufferSize
)

Add data to the FIFO that feeds the audio device.

Public function

void

 

ResetAudio()

Remove all queued data from the FIFO.

Overridden from USoundWave

Name Description

Public function Virtual

void

 

BeginGetCompressedData

(
    FName Format,
    const FPlatformAudioCookOverrides&...
)

Public function Virtual

int32

 

GeneratePCMData

(
    uint8* PCMData,
    const int32 SamplesNeeded
)

This is only used for DTYPE_Procedural audio.

Public function Virtual

FByteBulkDat...

 

GetCompressedData

(
    FName Format,
    const FPlatformAudioCookOverrides&...
)

Gets the compressed data from derived data cache for the specified platform Warning, the returned pointer isn't valid after we add new formats

Public function Virtual

int32

 

GetResourceSizeForFormat

(
    FName Format
)

Public function Virtual Const

bool

 

HasCompressedData

(
    FName Format,
    ITargetPlatform* TargetPlatfor...
)

Public function Virtual

void

 

InitAudioResource

(
    FByteBulkData& CompressedData
)

Copy the compressed audio data from the bulk data

Public function Virtual

bool

 

InitAudioResource

(
    FName Format
)

Copy the compressed audio data from derived data cache

Overridden from UObject

Name Description

Public function Virtual Const

void

 

GetAssetRegistryTags

(
    TArray< FAssetRegistryTag >& OutTa...
)

Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

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