engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
ICompressedAudioInfo类 参考abstract

Interface class to decompress various types of audio data 更多...

#include <AudioDecompress.h>

+ 类 ICompressedAudioInfo 继承关系图:

Public 成员函数

virtual ENGINE_API void EnableHalfRate (bool HalfRate)=0
 Sets decode to half-rate 更多...
 
virtual ENGINE_API void ExpandFile (uint8 *DstBuffer, struct FSoundQualityInfo *QualityInfo)=0
 Decompress an entire data file to a TArray
 
virtual int32 GetCurrentChunkIndex () const
 Gets the chunk index that was last read from (for Streaming Manager requests)
 
virtual int32 GetCurrentChunkOffset () const
 Gets the offset into the chunk that was last read to (for Streaming Manager priority)
 
virtual uint32 GetSourceBufferSize () const =0
 Gets the size of the source buffer originally passed to the info class (bytes)
 
virtual int GetStreamBufferSize () const =0
 Gets the preferred size for a streaming buffer for this decompression scheme
 
virtual USoundWave * GetStreamingSoundWave ()
 Return the streaming sound wave used by this decoder. 更多...
 
virtual ENGINE_API bool ReadCompressedData (uint8 *Destination, bool bLooping, uint32 BufferSize)=0
 Decompresses data to raw PCM data. 更多...
 
virtual ENGINE_API bool ReadCompressedInfo (const uint8 *InSrcBufferData, uint32 InSrcBufferDataSize, struct FSoundQualityInfo *QualityInfo)=0
 Reads the header information of a compressed format 更多...
 
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. 更多...
 
virtual void SeekToTime (const float SeekTime)=0
 Seeks to time (Some formats might not be seekable)
 
virtual bool StreamCompressedData (uint8 *Destination, bool bLooping, uint32 BufferSize)
 Decompresses streamed data to raw PCM data. 更多...
 
bool StreamCompressedInfo (USoundWave *Wave, struct FSoundQualityInfo *QualityInfo)
 Streams the header information of a compressed format 更多...
 
virtual bool SupportsStreaming () const
 Whether this decompression class supports streaming decompression
 
virtual bool UsesVorbisChannelOrdering () const =0
 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
 
virtual ~ICompressedAudioInfo ()
 Virtual destructor.
 

Protected 成员函数

virtual bool StreamCompressedInfoInternal (USoundWave *Wave, struct FSoundQualityInfo *QualityInfo)=0
 Internal override implemented by subclasses.
 

详细描述

Interface class to decompress various types of audio data

成员函数说明

◆ EnableHalfRate()

virtual ENGINE_API void ICompressedAudioInfo::EnableHalfRate ( bool  HalfRate)
pure virtual

Sets decode to half-rate

参数
HalfRateWhether Half rate is enabled

在 IStreamedCompressedInfo 内被实现.

◆ GetStreamingSoundWave()

virtual USoundWave * ICompressedAudioInfo::GetStreamingSoundWave ( )
inlinevirtual

Return the streaming sound wave used by this decoder.

Returns nullptr if there is not a streaming sound wave.

◆ ReadCompressedData()

virtual ENGINE_API bool ICompressedAudioInfo::ReadCompressedData ( uint8 *  Destination,
bool  bLooping,
uint32  BufferSize 
)
pure virtual

Decompresses data to raw PCM data.

参数
Destinationwhere to place the decompressed sound
bLoopingwhether to loop the sound by seeking to the start, or pad the buffer with zeroes
BufferSizenumber of bytes of PCM data to create
返回
bool true if the end of the data was reached (for both single shot and looping sounds)

在 IStreamedCompressedInfo 内被实现.

◆ ReadCompressedInfo()

virtual ENGINE_API bool ICompressedAudioInfo::ReadCompressedInfo ( const uint8 *  InSrcBufferData,
uint32  InSrcBufferDataSize,
struct FSoundQualityInfo *  QualityInfo 
)
pure virtual

Reads the header information of a compressed format

参数
InSrcBufferDataSource compressed data
InSrcBufferDataSizeSize of compressed data
QualityInfoQuality Info (to be filled out). This can be null in the case of most implementations of FSoundBuffer::ReadCompressedInfo

在 IStreamedCompressedInfo 内被实现.

◆ ReleaseStreamChunk()

virtual bool ICompressedAudioInfo::ReleaseStreamChunk ( bool  bBlockUntilReleased)
inlinevirtual

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

参数
bBlockUntilReleasedwhen set to true will cause this call to block if the decoder is currently using the chunk.
返回
true if the chunk was released, false otherwise.

◆ StreamCompressedData()

virtual bool ICompressedAudioInfo::StreamCompressedData ( uint8 *  Destination,
bool  bLooping,
uint32  BufferSize 
)
inlinevirtual

Decompresses streamed data to raw PCM data.

参数
Destinationwhere to place the decompressed sound
bLoopingwhether to loop the sound by seeking to the start, or pad the buffer with zeroes
BufferSizenumber of bytes of PCM data to create
返回
bool true if the end of the data was reached (for both single shot and looping sounds)

被 IStreamedCompressedInfo 重载.

◆ StreamCompressedInfo()

bool ICompressedAudioInfo::StreamCompressedInfo ( USoundWave *  Wave,
struct FSoundQualityInfo *  QualityInfo 
)
inline

Streams the header information of a compressed format

参数
WaveWave that will be read from to retrieve necessary chunk
QualityInfoQuality Info (to be filled out)

该类的文档由以下文件生成: