Skip to content

Class FTryllTtsPlaybackClock

ClassList > FTryllTtsPlaybackClock

More...

  • #include <TryllSpeakerComponent.h>

Public Functions

Type Name
int64 GetPlayedSamples () const
int64 GetQueuedSamples () const
void OnSamplesQueued (int64 NumSamples)
void SetWave (USoundWaveProcedural * InWave)

Detailed Description

Tracks how many TTS samples the audio device has actually consumed, so consumers pacing work against playback (e.g. lip sync) can slave to it. Safe to query from any thread; the speaker updates it on the game thread. Samples queued to a procedural sound that was discarded before draining (format change, EndPlay) count as played.

Public Functions Documentation

function GetPlayedSamples

int64 FTryllTtsPlaybackClock::GetPlayedSamples () const

function GetQueuedSamples

int64 FTryllTtsPlaybackClock::GetQueuedSamples () const

Every sample ever queued, played or not. The next queued sample lands at this position.


function OnSamplesQueued

void FTryllTtsPlaybackClock::OnSamplesQueued (
    int64 NumSamples
) 

function SetWave

void FTryllTtsPlaybackClock::SetWave (
    USoundWaveProcedural * InWave
) 


The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/TryllSpeakerComponent.h