Class FTryllTtsPlaybackClock¶
ClassList > FTryllTtsPlaybackClock
#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¶
function GetQueuedSamples¶
Every sample ever queued, played or not. The next queued sample lands at this position.
function OnSamplesQueued¶
function SetWave¶
The documentation for this class was generated from the following file C:/_tryll/_monorepo3/tryll/clients/unreal/Source/TryllClient/Public/TryllSpeakerComponent.h