Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- IVoiceEngine
- FSelfRegisteringExec
- IDeviceChangedListener
- FVoiceEngineImpl
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Public/VoiceEngineImpl.h |
| Include | #include "VoiceEngineImpl.h" |
Syntax
class FVoiceEngineImpl :
public IVoiceEngine,
public FSelfRegisteringExec,
public IDeviceChangedListener
Remarks
Generic implementation of voice engine, using Voice module for capture/codec
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Constructor | |||
FVoiceEngineImpl
(
IOnlineSubsystem* InSubsystem |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| TArray< uint8 > & | |||
| TArray< uint8 > & | |||
| FLocalVoiceData * | |||
| int32 | |||
| IOnlineSubsystem * | |||
| FRemoteTalkerData & | |||
| const TSharedPtr< IVoiceCapture > & | |||
| TSharedPtr< IVoiceCapture > & | |||
| TSharedPtr< IVoiceEncoder > & | |||
| const TSharedPtr< IVoiceEncoder > & | |||
| void | GetVoiceSettingsOverride
(
const FUniqueNetIdWrapper& RemoteTalkerId, |
||
| bool | IsOwningUser
(
uint32 UserIndex |
Determines if the specified index is the owner or not | |
| bool | IsRecording () |
||
| void | Start capturing voice data | ||
| void | Called when "last half second" is over | ||
| void | Stop capturing voice data |
Overridden from IVoiceEngine
| Type | Name | Description | |
|---|---|---|---|
| void | When called, disconnects all additional audio endpoints we patched to using PatchVoiceOutputToDevice(). | ||
| float | GetIncomingAudioAmplitude
(
const FUniqueNetIdWrapper& RemoteUserId |
This can be used to get how loud the given microphone input is, typically on a scale between 0.0 and 1.0. | |
| float | GetMicrophoneAmplitude
(
int32 LocalUserNum |
This can be used to get how loud the given microphone input is, typically on a scale between 0.0 and 1.0. | |
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap outgoing microphone audio from local players to use elsewhere in your application. | ||
| Audio::FPatchOutputStrongPtr | This can be used to get arbitrarily tap incoming VOIP audio from remote players to use elsewhere in your application. | ||
| uint32 | Returns which local talkers have data ready to be read from the voice system | ||
| FString | Get information about the voice state for display | ||
| bool | Init
(
int32 MaxLocalTalkers, |
IVoiceEngine. | |
| bool | IsHeadsetPresent
(
uint32 LocalUserNum |
Checks whether a local user index has a headset present or not | |
| bool | IsLocalPlayerTalking
(
uint32 LocalUserNum |
Determines whether a local user index is currently talking or not | |
| bool | IsRemotePlayerTalking
(
const FUniqueNetId& UniqueId |
Determines whether a remote talker is currently talking or not | |
| bool | PatchLocalTalkerOutputToEndpoint
(
const FString& InDeviceName |
This can be used to patch outgoing audio to a different audio device. | |
| bool | PatchRemoteTalkerOutputToEndpoint
(
const FString& InDeviceName, |
This can be used to patch incoming audio to a different audio device. | |
| uint32 | ReadLocalVoiceData
(
uint32 LocalUserNum, |
||
| uint32 | ReadLocalVoiceData
(
uint32 LocalUserNum, |
Reads local voice data for the specified local talker. | |
| uint32 | RegisterLocalTalker
(
uint32 LocalUserNum |
Registers the user index as a local talker (interested in voice data) | |
| uint32 | RegisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Registers the unique player id as a remote talker (submitted voice data only) | |
| uint32 | SetPlaybackPriority
(
uint32 LocalUserNum, |
Sets the playback priority of a remote talker for the given user. | |
| uint32 | SetRemoteVoiceAmplitude
(
const FUniqueNetIdWrapper& RemoteTalkerId, |
Used when receiving remote voice data to set the amplitude of a remote talker's incoming audio. | |
| uint32 | StartLocalVoiceProcessing
(
uint32 LocalUserNum |
IVoiceEngine. | |
| uint32 | StartRemoteVoiceProcessing
(
const FUniqueNetId& UniqueId |
Starts remote voice processing for the specified user | |
| uint32 | StopLocalVoiceProcessing
(
uint32 LocalUserNum |
Stops local voice processing for the specified user index | |
| uint32 | StopRemoteVoiceProcessing
(
const FUniqueNetId& UniqueId |
Stops remote voice processing for the specified user | |
| uint32 | SubmitRemoteVoiceData
(
const FUniqueNetId& RemoteTalkerId, |
Submits remote voice data for playback by the voice system. | |
| uint32 | SubmitRemoteVoiceData
(
const FUniqueNetIdWrapper& RemoteTalkerId, |
||
| void | Tick
(
float DeltaTime |
Allows for platform specific servicing of devices, etc. | |
| uint32 | UnregisterLocalTalker
(
uint32 LocalUserNum |
Unregisters the user index as a local talker (not interested in voice data) | |
| uint32 | UnregisterRemoteTalker
(
const FUniqueNetId& UniqueId |
Unregisters the unique player id as a remote talker |
Overridden from FExec
| Type | Name | Description | |
|---|---|---|---|
| bool | Exec_Runtime
(
UWorld* InWorld, |
FSelfRegisteringExec. |
Overridden from IDeviceChangedListener
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | OnDeviceRemoved
(
FString DeviceID |
Typedefs
| Name | Description |
|---|---|
| FRemoteTalkerData | Mapping of UniqueIds to the incoming voice data and their audio component |