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

Module for Voice capture/compression/decompression implementations 更多...

#include <VoiceModule.h>

+ 类 FVoiceModule 继承关系图:

Public 成员函数

virtual TSharedPtr< IVoiceCapture > CreateVoiceCapture (const FString &DeviceName, int32 SampleRate=UVOIPStatics::GetVoiceSampleRate(), int32 NumChannels=UVOIPStatics::GetVoiceNumChannels())
 Instantiates a new voice capture object 更多...
 
virtual TSharedPtr< IVoiceDecoder > CreateVoiceDecoder (int32 SampleRate=UVOIPStatics::GetVoiceSampleRate(), int32 NumChannels=UVOIPStatics::GetVoiceNumChannels())
 Instantiates a new voice decoder object 更多...
 
virtual TSharedPtr< IVoiceEncoder > CreateVoiceEncoder (int32 SampleRate=UVOIPStatics::GetVoiceSampleRate(), int32 NumChannels=UVOIPStatics::GetVoiceNumChannels(), EAudioEncodeHint EncodeHint=UVOIPStatics::GetAudioEncodingHint())
 Instantiates a new voice encoder object 更多...
 
virtual bool DoesPlatformSupportVoiceCapture ()
 Checks to see if the current platform supports voice capture. 更多...
 
bool IsVoiceEnabled () const
 
- Public 成员函数 继承自 IModuleInterface
virtual bool IsGameModule () const
 Returns true if this module hosts gameplay code 更多...
 
virtual void PostLoadCallback ()
 Called after the module has been reloaded
 
virtual void PreUnloadCallback ()
 Called before the module has been unloaded
 
virtual void ShutdownModule ()
 Called before the module is unloaded, right before the module object is destroyed. 更多...
 
virtual void StartupModule ()
 Called right after the module DLL has been loaded and the module object has been created Load dependent modules here, and they will be guaranteed to be available during ShutdownModule. 更多...
 
virtual bool SupportsAutomaticShutdown ()
 Override this to set whether your module would like cleanup on application shutdown 更多...
 
virtual bool SupportsDynamicReloading ()
 Override this to set whether your module is allowed to be unloaded on the fly 更多...
 
virtual ~IModuleInterface ()
 Note: Even though this is an interface class we need a virtual destructor here because modules are deleted via a pointer to this interface

 
- Public 成员函数 继承自 FSelfRegisteringExec
 FSelfRegisteringExec ()
 Constructor, registering this instance.
 
virtual ~FSelfRegisteringExec ()
 Destructor, unregistering this instance.
 

静态 Public 成员函数

static FVoiceModule & Get ()
 Singleton-like access to this module's interface. 更多...
 
static bool IsAvailable ()
 Checks to see if this module is loaded and ready. 更多...
 
- 静态 Public 成员函数 继承自 FSelfRegisteringExec
static bool StaticExec (UWorld *Inworld, const TCHAR *Cmd, FOutputDevice &Ar)
 Routes a command to the self-registered execs.
 

详细描述

Module for Voice capture/compression/decompression implementations

成员函数说明

◆ CreateVoiceCapture()

virtual TSharedPtr< IVoiceCapture > FVoiceModule::CreateVoiceCapture ( const FString &  DeviceName,
int32  SampleRate = UVOIPStatics::GetVoiceSampleRate(),
int32  NumChannels = UVOIPStatics::GetVoiceNumChannels() 
)
virtual

Instantiates a new voice capture object

参数
DeviceNamename of device to capture audio data with, empty for default device
SampleRatesampling rate of voice capture
NumChannelsnumber of channels to capture
返回
new voice capture object, possibly NULL

◆ CreateVoiceDecoder()

virtual TSharedPtr< IVoiceDecoder > FVoiceModule::CreateVoiceDecoder ( int32  SampleRate = UVOIPStatics::GetVoiceSampleRate(),
int32  NumChannels = UVOIPStatics::GetVoiceNumChannels() 
)
virtual

Instantiates a new voice decoder object

参数
SampleRatesampling rate of voice capture
NumChannelsnumber of channels to capture
返回
new voice decoder object, possibly NULL

◆ CreateVoiceEncoder()

virtual TSharedPtr< IVoiceEncoder > FVoiceModule::CreateVoiceEncoder ( int32  SampleRate = UVOIPStatics::GetVoiceSampleRate(),
int32  NumChannels = UVOIPStatics::GetVoiceNumChannels(),
EAudioEncodeHint  EncodeHint = UVOIPStatics::GetAudioEncodingHint() 
)
virtual

Instantiates a new voice encoder object

参数
SampleRatesampling rate of voice capture
NumChannelsnumber of channels to capture
EncodeHinthint to describe type of audio quality desired
返回
new voice encoder object, possibly NULL

◆ DoesPlatformSupportVoiceCapture()

virtual bool FVoiceModule::DoesPlatformSupportVoiceCapture ( )
virtual

Checks to see if the current platform supports voice capture.

返回
True if the current platform support voice capture

◆ Get()

static FVoiceModule & FVoiceModule::Get ( )
inlinestatic

Singleton-like access to this module's interface.

This is just for convenience! Beware of calling this during the shutdown phase, though. Your module might have been unloaded already.

返回
Returns singleton instance, loading the module on demand if needed

◆ IsAvailable()

static bool FVoiceModule::IsAvailable ( )
inlinestatic

Checks to see if this module is loaded and ready.

It is only valid to call Get() if IsAvailable() returns true.

返回
True if the module is loaded and ready to use

◆ IsVoiceEnabled()

bool FVoiceModule::IsVoiceEnabled ( ) const
inline
返回
true if voice is enabled

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