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

Interface for decoding voice passed over the wire 更多...

#include <VoiceCodec.h>

+ 类 IVoiceDecoder 继承关系图:

Public 成员函数

virtual void Decode (const uint8 *CompressedData, uint32 CompressedDataSize, uint8 *OutRawPCMData, uint32 &OutRawDataSize)=0
 Decode an encoded audio stream (outputs 16bit PCM audio) 更多...
 
virtual void Destroy ()=0
 Cleanup the decoder
 
virtual void DumpState () const =0
 Output the state of the decoder
 
virtual bool Init (int32 SampleRate, int32 NumChannels)=0
 Initialize the decoder 更多...
 
virtual void Reset ()=0
 Reset the decoder back to its initial state
 
- Public 成员函数 继承自 TSharedFromThis< IVoiceDecoder >
TSharedRef< IVoiceDecoder, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< IVoiceDecoder const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< IVoiceDecoder >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 
- 静态 Protected 成员函数 继承自 TSharedFromThis< IVoiceDecoder >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

Interface for decoding voice passed over the wire

成员函数说明

◆ Decode()

virtual void IVoiceDecoder::Decode ( const uint8 *  CompressedData,
uint32  CompressedDataSize,
uint8 *  OutRawPCMData,
uint32 &  OutRawDataSize 
)
pure virtual

Decode an encoded audio stream (outputs 16bit PCM audio)

参数
CompressedDataencoded/compressed audio stream
CompressedDataSizeamount of data in the buffer
OutRawPCMDatabuffer to contain the decoded raw PCM data
OutRawDataSize[in/out] amount of buffer used for the decoded raw PCM data

◆ Init()

virtual bool IVoiceDecoder::Init ( int32  SampleRate,
int32  NumChannels 
)
pure virtual

Initialize the decoder

参数
SampleRaterequested sample rate of the decoding (may be up sampled depending on the source data)
NumChannelnumber of channels in the output decoded stream (mono streams can encode to stereo)
返回
true if initialization was successful, false otherwise

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