-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCookFrameSequenceAsync.h
32 lines (24 loc) · 967 Bytes
/
CookFrameSequenceAsync.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintAsyncActionBase.h"
#include "OVRLipSyncContextWrapper.h"
#include "OVRLipSyncFrame.h"
#include "CookFrameSequenceAsync.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FFrameSequenceCoocked, UOVRLipSyncFrameSequence*, FrameSequence, bool, Success);
/**
*
*/
UCLASS()
class OVRLIPSYNC_API UCookFrameSequenceAsync : public UBlueprintAsyncActionBase
{
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, Category = "LipSync")
FFrameSequenceCoocked onFrameSequenceCooked;
UFUNCTION(BlueprintCallable, meta = (BlueprintInternalUseOnly = "true"), Category = "LipSync")
static UCookFrameSequenceAsync* CookFrameSequence(const TArray<uint8>& RawSamples, bool UseOfflineModel = false);
TArray<uint8> RawSamples;
bool UseOfflineModel;
virtual void Activate() override;
};