![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AudioDecompress.h>
Inheritance diagram for ICompressedAudioInfo:Protected Member Functions | |
| virtual bool | StreamCompressedInfoInternal (const FSoundWaveProxyPtr &InWaveProxy, struct FSoundQualityInfo *QualityInfo)=0 |
| bool | WantsFilteredLogging () const |
Protected Attributes | |
| bool | bHasError = false |
| bool | bWantsFilteredLogging = false |
| FSoundWaveProxyPtr | StreamingSoundWave |
Interface class to decompress various types of audio data
| ICompressedAudioInfo::ICompressedAudioInfo | ( | ) |
|
virtualdefault |
Virtual destructor.
Sets decode to half-rate
| HalfRate | Whether Half rate is enabled |
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
|
pure virtual |
Decompress an entire data file to a TArray
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
Gets the chunk index that was last read from (for Streaming Manager requests)
Reimplemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
Gets the offset into the chunk that was last read to (for Streaming Manager priority)
Reimplemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
Gets the size of the source buffer originally passed to the info class (bytes)
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
|
pure virtual |
Gets the preferred size for a streaming buffer for this decompression scheme
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
|
inlinevirtual |
Return the streaming sound wave used by this decoder. Returns nullptr if there is not a streaming sound wave.
|
virtual |
Returns true if a non-recoverable error has occurred.
Reimplemented in FBinkAudioInfo, and FRadAudioInfo.
Returns whether this instance can be cast to a IStreamedCompressedInfo. Surprisingly SupportsStreaming doesn't work for this.
Reimplemented in IStreamedCompressedInfo.
|
pure virtual |
Decompresses data to raw PCM data.
| Destination | where to place the decompressed sound |
| bLooping | whether to loop the sound by seeking to the start, or pad the buffer with zeroes |
| BufferSize | number of bytes of PCM data to create |
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
|
pure virtual |
Reads the header information of a compressed format
| InSrcBufferData | Source compressed data |
| InSrcBufferDataSize | Size of compressed data |
| QualityInfo | Quality Info (to be filled out). This can be null in the case of most implementations of FSoundBuffer::ReadCompressedInfo |
Implemented in IStreamedCompressedInfo, and FADPCMAudioInfo.
This can be called to explicitly release this decoder's reference to a chunk of compressed audio without destroying the decoder itself.
| bBlockUntilReleased | when set to true will cause this call to block if the decoder is currently using the chunk. |
Reimplemented in FADPCMAudioInfo.
Seeks to specific frame in the audio (Some formats might not be seekable)
Implemented in FPcmAudioInfoHybrid, FADPCMAudioInfo, IStreamedCompressedInfo, FOpusAudioInfo, FBinkAudioInfo, and FRadAudioInfo.
Seeks to time (Some formats might not be seekable)
Implemented in FPcmAudioInfoHybrid, FADPCMAudioInfo, IStreamedCompressedInfo, FOpusAudioInfo, FBinkAudioInfo, and FRadAudioInfo.
|
inlinevirtual |
Decompresses streamed data to raw PCM data.
| Destination | where to place the decompressed sound |
| bLooping | whether to loop the sound by seeking to the start, or pad the buffer with zeros |
| BufferSize | number of bytes of PCM data to create |
Reimplemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
| bool ICompressedAudioInfo::StreamCompressedInfo | ( | const FSoundWaveProxyPtr & | Wave, |
| struct FSoundQualityInfo * | QualityInfo | ||
| ) |
| bool ICompressedAudioInfo::StreamCompressedInfo | ( | USoundWave * | Wave, |
| struct FSoundQualityInfo * | QualityInfo | ||
| ) |
Streams the header information of a compressed format
| Wave | Wave that will be read from to retrieve necessary chunk |
| QualityInfo | Quality Info (to be filled out) |
|
protectedpure virtual |
Internal override implemented by subclasses.
Implemented in IStreamedCompressedInfo, and FADPCMAudioInfo.
Whether this decompression class supports streaming decompression
Reimplemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
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
Implemented in FADPCMAudioInfo, and IStreamedCompressedInfo.
|
inlineprotected |
|
protected |