ULipSyncDataA2F UObject-based container for Audio2Face lipsync data.
More...
#include <LipSyncDataA2F.h>
|
virtual void | ReleaseData () override |
| Clean up the A2F-lipsync data.
|
|
| ULipSyncDataA2F () |
| Constructor for the Audio2Face lipsync data holder.
|
|
void | SetA2FCurveWeights (const TArray< TArray< float > > &sourceCurves, int framesPerSecond) |
| Register the genereated curves from A2F as part of this data object.
|
|
int | GetFramePerSecond () const |
|
const TArray< TArray< float > > & | GetA2FCurveWeights () const |
|
| ILipSyncBaseData () |
| Default constructor.
|
|
FGuid | GetGuid () const |
| Retrieves the unique GUID (FGuid) assigned to this instance.
|
|
ULipSyncDataA2F UObject-based container for Audio2Face lipsync data.
Holds all data required for playback of Audio2Face lipsync generation. Keeps A2F logic modular and separated from other lipsync types. Each instance holds the lipsync data for a single voiceline and is responsible for its own cleanup.
◆ ULipSyncDataA2F()
ULipSyncDataA2F::ULipSyncDataA2F |
( |
| ) |
|
|
inline |
Constructor for the Audio2Face lipsync data holder.
Adds this object to the root set to prevent garbage collection during playback.
◆ GetA2FCurveWeights()
const TArray< TArray< float > > & ULipSyncDataA2F::GetA2FCurveWeights |
( |
| ) |
const |
|
inline |
- Returns
- A direct reference to the generated curve weights.
◆ GetFramePerSecond()
int ULipSyncDataA2F::GetFramePerSecond |
( |
| ) |
const |
|
inline |
- Returns
- The FPS that the curves were generated at.
◆ ReleaseData()
virtual void ULipSyncDataA2F::ReleaseData |
( |
| ) |
|
|
inlineoverridevirtual |
Clean up the A2F-lipsync data.
Removes this object from the root set, allowing it to be garbage collected. Should be called when playback is finished and the data is no longer needed.
Implements ILipSyncBaseData.
◆ SetA2FCurveWeights()
void ULipSyncDataA2F::SetA2FCurveWeights |
( |
const TArray< TArray< float > > & | sourceCurves, |
|
|
int | framesPerSecond ) |
|
inline |
Register the genereated curves from A2F as part of this data object.
These are returned by the A2F_headless REST api.
- Parameters
-
sourceCurves | The ARKit curve values per setting per frame. |
framesPerSecond | The fps that this data was generated at (high framerates will interpolate) |
The documentation for this class was generated from the following file: