UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
VoxtaGlobalAudioPlayback.h
Go to the documentation of this file.
1// Copyright(c) 2025 grrimgrriefer & DZnnah, see LICENSE for details.
2
3#pragma once
4#include "CoreMinimal.h"
6#include "VoxtaGlobalAudioPlayback.generated.h"
7
8UCLASS(ClassGroup = Voxta, NotPlaceable, NotBlueprintType)
9class UVoxtaGlobalAudioPlayback : public UVoxtaAudioPlayback
10{
11 GENERATED_BODY()
12
13#pragma region public API
14public:
15 void SetEnabled(bool newState);
16
17 bool IsEnabled() const;
18
19 virtual void PlaybackMessage(const FBaseCharData& sender, const FChatMessage& message) override;
20#pragma endregion
21
22#pragma region lipsync related API
23private:
24 using UVoxtaAudioPlayback::Initialize;
25 using UVoxtaAudioPlayback::MarkAudioChunkCustomPlaybackComplete;
26 using UVoxtaAudioPlayback::GetLipSyncType;
27 using UVoxtaAudioPlayback::GetA2FCurveWeightsPreUpdate;
28#pragma endregion
29
30#pragma region data
31private:
32 LipSyncType m_lipSyncType = LipSyncType::None;
33
34 bool m_isEnabled = false;
35 bool m_isInitialized = false;
36#pragma endregion
37
38#pragma region private API
39private:
40 void Prepare();
41#pragma endregion
42};
LipSyncType
LipSyncType All the possible LipSync types that are currently supported by the UnrealVoxta client.
Definition LipSyncType.h:21
Definition VoxtaGlobalAudioPlayback.h:10
void SetEnabled(bool newState)
Definition VoxtaGlobalAudioPlayback.cpp:8
bool IsEnabled() const
Definition VoxtaGlobalAudioPlayback.cpp:13
virtual void PlaybackMessage(const FBaseCharData &sender, const FChatMessage &message) override
Definition VoxtaGlobalAudioPlayback.cpp:18
FBaseCharData Read-only data struct containing all the universal information fields for a character.
Definition BaseCharData.h:17
FChatMessage Represents a single message in a chat conversation, containing both text and audio data.
Definition ChatMessage.h:16