Module |
|
Header |
/Engine/Source/Runtime/AudioExtensions/Public/ISoundfieldEndpoint.h |
Include |
#include "ISoundfieldEndpoint.h" |
class ISoundfieldEndpoint
Class that allows soundfield-encoded audio to be sent to an arbitrary locale. For endpoint types that support receiving our downmixed interleaved audio data directly, implement IAudioEndpoint instead.
Name | Description | |
---|---|---|
|
ISoundfieldEndpoint ( |
Name | Description | |
---|---|---|
|
~ISoundfieldEndpoint() |
Name | Description | ||
---|---|---|---|
|
EndpointRequiresCallback() |
OPTIONAL OVERRIDES: For endpoints that do not explicitly fire a timed callback to poll audio data, this should be overridden to return true, and OnAudioCallback and GetDesiredCallbackFrequency should be overridden. |
|
|
float |
GetDesiredCallbackPeriodicity() |
For endpoints that return true for EndpointRequiresCallback, this should return the duration between OnAudioCallback calls in seconds. |
|
GetNumPacketsBuffer() |
Returns the amount of ISoundfieldAudioPackets currently buffered for this endpoint. |
|
|
GetRemainderInPacketBuffer() |
Returns the amount of ISoundfieldAudioPackets that can be buffered for this endpoint before reaching capacity. |
|
|
OnAudioCallback ( |
For endpoints that override EndpointRequiresCallback to return true, this callback will be called every (GetDesiredNumFrames() / GetSampleRate()) seconds. |
|
|
PollSettings ( |
Use this as a thread safe way to use the current settings posted to this IAudioEndpoint. |
|
|
TUniquePtr< ... |
PopAudio() |
METHODS USED BY IMPLEMENTATIONS OF ISoundfieldEndpoint: This is used by the IAudioEndpoint implementation to poll buffered audio to process or send to the endpoint. |
|
ProcessAudioIfNecessary() |
If this endpoint hasn't created it's own async callback thread but still requires an explicit callback, this should be called. |
|
|
PushAudio ( |
Push a soundfield packet to the buffer. |
|
|
RunCallbackSynchronously() |
||
|
SetNewSettings |
Post new settings for this endpoint. |
|
|
StartRunningCallback() |
If EndpointRequiresCallback() returns true, this will be used to spawn an async thread and begin calling OnAudioCallback. |
|
|
StopRunningCallback() |