4#include "CoreMinimal.h"
5#include "Subsystems/GameInstanceSubsystem.h"
9#include "Containers/Queue.h"
10#include "Components/AudioComponent.h"
12#include "AnnouncerSubsystem.generated.h"
25 UFUNCTION(BlueprintCallable, Category =
"Voice")
26 void PlayVoice(FString
const VoiceToPlay);
28 bool IsAnnouncerSpeaking();
31 void PlayNextQueuedVoice();
33 void AsyncLoadSound(TSoftObjectPtr<USoundCue> AssetPointer, FDelegateSoundCue Callback);
38 void OnStartedTalking(
const TArray<struct FSubtitleCue>& Subtitles,
float CueDuration);
46 UAudioComponent* ActiveVoiceAudioComponent =
nullptr;
50 FDelegateSoundCue DelegateSoundCue;
DECLARE_DELEGATE(FAsyncBinding)
DECLARE_DELEGATE_OneParam(FDelegateSoundCue, USoundCue *)
Definition: AnnouncerSubsystem.h:21
TQueue< FVoiceTrackInfo > SoundsQueue
Definition: AnnouncerSubsystem.h:40
Definition: AnnouncerSoundDataAsset.h:27