ICompressedAudioInfo

Interface class to decompress various types of audio data

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/AudioDecompress.h

Include

#include "AudioDecompress.h"

Syntax

class ICompressedAudioInfo

Remarks

Interface class to decompress various types of audio data

Variables

Name Description

Protected variable

USoundWave *...

 

StreamingSoundWave

Constructors

Name Description

Public function

ICompressedAudioInfo()

Destructors

Name Description

Public function Virtual

~ICompressedAudioInfo()

Virtual destructor.

Functions

Name Description

Public function

void

 

EnableHalfRate

(
    bool HalfRate
)

Sets decode to half-rate

Public function

void

 

ExpandFile

(
    uint8* DstBuffer,
    FSoundQualityInfo* QualityInfo
)

Decompress an entire data file to a TArray

Public function Virtual Const

int32

 

GetCurrentChunkIndex()

Gets the chunk index that was last read from (for Streaming Manager requests)

Public function Virtual Const

int32

 

GetCurrentChunkOffset()

Gets the offset into the chunk that was last read to (for Streaming Manager priority)

Public function Const

uint32

 

GetSourceBufferSize()

Gets the size of the source buffer originally passed to the info class (bytes)

Public function Const

int

 

GetStreamBufferSize()

Gets the preferred size for a streaming buffer for this decompression scheme

Public function Virtual

USoundWave &...

 

GetStreamingSoundWave()

Return the streaming sound wave used by this decoder.

Public function Virtual Const

bool

 

HasError()

Returns true if a non-recoverable error has occurred.

Public function

bool

 

ReadCompressedData

(
    uint8* Destination,
    bool bLooping,
    uint32 BufferSize
)

Decompresses data to raw PCM data.

Public function

bool

 

ReadCompressedInfo

(
    const uint8* InSrcBufferData,
    uint32 InSrcBufferDataSize,
    FSoundQualityInfo* QualityInfo
)

Reads the header information of a compressed format

Public function Virtual

bool

 

ReleaseStreamChunk

(
    bool bBlockUntilReleased
)

This can be called to explicitly release this decoder's reference to a chunk of compressed audio without destroying the decoder itself.

Public function

void

 

SeekToTime

(
    const float SeekTime
)

Seeks to time (Some formats might not be seekable)

Public function Virtual

bool

 

StreamCompressedData

(
    uint8* Destination,
    bool bLooping,
    uint32 BufferSize
)

Decompresses streamed data to raw PCM data.

Public function

bool

 

StreamCompressedInfo

(
    USoundWave* Wave,
    FSoundQualityInfo* QualityInfo
)

Streams the header information of a compressed format

Protected function

bool

 

StreamCompressedInfoInternal

(
    USoundWave* Wave,
    FSoundQualityInfo* QualityInfo
)

Internal override implemented by subclasses.

Public function Virtual Const

bool

 

SupportsStreaming()

Following functions are optional if streaming is supported //.

Public function Const

bool

 

UsesVorbisChannelOrdering()

Whether the decompressed audio will be arranged using Vorbis' channel ordering See http://www.xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-800004.3.9 for details

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