IAudioPluginListener

[IAudioPluginListener](API\Runtime\AudioExtensions\IAudioPluginListener) Implementations of this interface can receive updates about the audio listener's position in the game world, as well as other data.

Windows
MacOS
Linux

References

Module

AudioExtensions

Header

/Engine/Source/Runtime/AudioExtensions/Public/IAudioExtensionPlugin.h

Include

#include "IAudioExtensionPlugin.h"

Syntax

class IAudioPluginListener

Remarks

IAudioPluginListener Implementations of this interface can receive updates about the audio listener's position in the game world, as well as other data. to use this, register a ListenerObserver to an audio device using FAudioDevice::RegisterPluginListener().

Destructors

Name Description

Public function Virtual

~IAudioPluginListener()

Functions

Name Description

Public function Virtual

void

 

OnDeviceShutdown

(
    FAudioDevice* AudioDevice
)

Public function Virtual

void

 

OnListenerInitialize

(
    FAudioDevice* AudioDevice,
    UWorld* ListenerWorld
)

This function is called when a game world initializes a listener with an audio device this IAudioPluginListener is registered to.

Public function Virtual

void

 

OnListenerShutdown

(
    FAudioDevice* AudioDevice
)

Called when the listener is shutdown.

Public function Virtual

void

 

OnListenerUpdated

(
    FAudioDevice* AudioDevice,
    const int32 ViewportIndex,
    const FTransform& ListenerTransfor...,
    const float InDeltaSeconds
)

Called when the listener is updated on the given audio device.

Public function Virtual

void

 

OnTick

(
    UWorld* InWorld,
    const int32 ViewportIndex,
    const FTransform& ListenerTransfor...,
    const float InDeltaSeconds
)

This is overridable for any actions a plugin manager may need to do on the game thread.

Public function Virtual

void

 

OnWorldChanged

(
    FAudioDevice* AudioDevice,
    UWorld* InWorld
)

This is overridable for any actions a plugin manager may need to do on a level change.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss