Navigation
API > API/Runtime > API/Runtime/AudioExtensions
References
| Module | AudioExtensions |
| Header | /Engine/Source/Runtime/AudioExtensions/Public/ISoundfieldEndpoint.h |
| Include | #include "ISoundfieldEndpoint.h" |
Syntax
class ISoundfieldEndpoint
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
ISoundfieldEndpoint
(
int32 NumRenderCallbacksToBuffer |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | 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 | For endpoints that return true for EndpointRequiresCallback, this should return the duration between OnAudioCallback calls in seconds. | ||
| int32 | Returns the amount of ISoundfieldAudioPackets currently buffered for this endpoint. | ||
| int32 | Returns the amount of ISoundfieldAudioPackets that can be buffered for this endpoint before reaching capacity. | ||
| void | OnAudioCallback
(
TUniquePtr< ISoundfieldAudioPacket >&& InPacket, |
For endpoints that override EndpointRequiresCallback to return true, this callback will be called every (GetDesiredNumFrames() / GetSampleRate()) seconds. | |
| void | PollSettings
(
TFunctionRef< void(const ISoundfieldEndpointSettingsProxy*)> SettingsCallback |
Use this as a thread safe way to use the current settings posted to this IAudioEndpoint. | |
| TUniquePtr< ISoundfieldAudioPacket > | 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. | |
| void | If this endpoint hasn't created it's own async callback thread but still requires an explicit callback, this should be called. | ||
| bool | PushAudio
(
TUniquePtr< ISoundfieldAudioPacket >&& InPacket |
Push a soundfield packet to the buffer. | |
| void | |||
| void | SetNewSettings
(
TUniquePtr< ISoundfieldEndpointSettingsProxy >&& InNewSettings |
Post new settings for this endpoint. | |
| void | If EndpointRequiresCallback() returns true, this will be used to spawn an async thread and begin calling OnAudioCallback. | ||
| void |