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

Interface for capturing voice data on any platform 更多...

#include <VoiceCapture.h>

+ 类 IVoiceCapture 继承关系图:

Public 成员函数

virtual bool ChangeDevice (const FString &DeviceName, int32 SampleRate, int32 NumChannels)=0
 Change the associated capture device 更多...
 
virtual void DumpState () const =0
 Dump the state of the voice capture device
 
virtual int32 GetBufferSize () const =0
 
virtual EVoiceCaptureState::Type GetCaptureState (uint32 &OutAvailableVoiceData) const =0
 Return the state of the voice data and its availability 更多...
 
virtual float GetCurrentAmplitude () const
 
Audio::FPatchOutputStrongPtr GetMicrophoneAudio (int32 MaxExpectedLatencyInSamples, float Gain)
 
virtual EVoiceCaptureState::Type GetVoiceData (uint8 *OutVoiceBuffer, uint32 InVoiceBufferSize, uint32 &OutAvailableVoiceData)
 Fill a buffer with all available voice data 更多...
 
virtual bool Init (const FString &DeviceName, int32 SampleRate, int32 NumChannels)=0
 Initialize the voice capture object 更多...
 
virtual bool IsCapturing ()=0
 Is the voice capture object actively capturing 更多...
 
virtual void Shutdown ()=0
 Shutdown the voice capture object
 
virtual bool Start ()=0
 Start capturing voice 更多...
 
virtual void Stop ()=0
 Stop capturing voice
 
- Public 成员函数 继承自 TSharedFromThis< IVoiceCapture >
TSharedRef< IVoiceCapture, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< IVoiceCapture 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 属性

Audio::FPatchSplitter MicrophoneOutput
 Optional patch point for MicrophoneOutput.
 

额外继承的成员函数

- Protected 成员函数 继承自 TSharedFromThis< IVoiceCapture >
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< IVoiceCapture >
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 capturing voice data on any platform

成员函数说明

◆ ChangeDevice()

virtual bool IVoiceCapture::ChangeDevice ( const FString &  DeviceName,
int32  SampleRate,
int32  NumChannels 
)
pure virtual

Change the associated capture device

参数
DeviceNamename of device to capture audio data with, empty for default device
SampleRatesampling rate of voice capture
NumChannelsnumber of channels to capture
返回
true if change was successful, false otherwise

◆ GetBufferSize()

virtual int32 IVoiceCapture::GetBufferSize ( ) const
pure virtual
返回
number of bytes currently allocated in the capture buffer

◆ GetCaptureState()

virtual EVoiceCaptureState::Type IVoiceCapture::GetCaptureState ( uint32 &  OutAvailableVoiceData) const
pure virtual

Return the state of the voice data and its availability

参数
OutAvailableVoiceDatasize, in bytes, of available voice data
返回
state of the voice capture buffer

◆ GetCurrentAmplitude()

virtual float IVoiceCapture::GetCurrentAmplitude ( ) const
inlinevirtual
返回
the current loudness of the microphone. Returns -1.0 if this function is not supported by the current platform.

◆ GetMicrophoneAudio()

Audio::FPatchOutputStrongPtr IVoiceCapture::GetMicrophoneAudio ( int32  MaxExpectedLatencyInSamples,
float  Gain 
)
inline
返回
a new output for this mic's audio.

◆ GetVoiceData()

virtual EVoiceCaptureState::Type IVoiceCapture::GetVoiceData ( uint8 *  OutVoiceBuffer,
uint32  InVoiceBufferSize,
uint32 &  OutAvailableVoiceData 
)
inlinevirtual

Fill a buffer with all available voice data

参数
OutVoiceBufferallocated buffer to fill with voice data
InVoiceBufferSizesize, in bytes, of allocated buffer
OutAvailableVoiceDatasize, in bytes, of data placed in the OutVoiceBuffer
OutSampleCounteroptional parameter for beginning sample of this buffer.
返回
state of the voice capture buffer

◆ Init()

virtual bool IVoiceCapture::Init ( const FString &  DeviceName,
int32  SampleRate,
int32  NumChannels 
)
pure virtual

Initialize the 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
返回
true if successful, false otherwise

◆ IsCapturing()

virtual bool IVoiceCapture::IsCapturing ( )
pure virtual

Is the voice capture object actively capturing

返回
true if voice is being captured, false otherwise

◆ Start()

virtual bool IVoiceCapture::Start ( )
pure virtual

Start capturing voice

返回
true if successfully started, false otherwise

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