ULimenFMODAudioComponent
Overview
ULimenFMODAudioComponent is a custom audio component designed to integrate with FMOD for audio playback in Unreal Engine 5. It overrides the BeginPlay and EndPlay lifecycle events to manage subscriptions to game pause state changes, allowing it to pause or resume audio based on whether the game is paused.
Properties
Type | Name | Access | Description |
|---|---|---|---|
bool | bPausePlaybackWithWorld | EditAnywhere | Determines if the component should pause playback when the game is paused. |
Functions
Return Type | Signature | Description |
|---|---|---|
void | SetPausePlaybackWithWorld(const bool bPause) | Sets whether the component should pause playback when the game is paused. |
void | GamePausedStateChanged(const bool bIsPaused) | Handles the change in game pause state, pausing or resuming audio accordingly if |
Usage & Implementation Notes
Subscribes to the game's pause state changes during
BeginPlayand unsubscribes duringEndPlay.The component can be configured to automatically pause when the game is paused by setting
bPausePlaybackWithWorldto true.