22#ifndef HOLLYWOOD_RUNAWAY_SPEECH_H
23#define HOLLYWOOD_RUNAWAY_SPEECH_H
25#include "hollywood/runaway/animation.h"
26#include "hollywood/runaway/audio.h"
33 enum LipSync { kNoLipSync, kTextLipSync, kRecordedLipSync };
35 _audio(audio), _random(random), _mode(mode) {}
36 void start(
const Common::U32String &text, uint16 sample,
bool global, uint32 now, uint minimumDuration = 1000);
40 bool finished(uint32 now)
const {
return (int32)(now - _deadline) >= 0; }
42 byte frame(uint32 now)
const {
return _lipSync.frame(now); }
43 uint frameDuration()
const {
return _lipSync.frameDuration(); }
Definition: animation.h:33