载入中...
搜索中...
未找到
eve::dialogue::DialogueVoice类 参考

Localized voice assets, duration-based advance, and amplitude lip sync. 更多...

#include <DialogueVoice.h>

类 eve::dialogue::DialogueVoice 继承关系图:
eve::Module

Public 成员函数

 Module_REG (DialogueVoice)
 
 ~DialogueVoice () override
 Dialogue voice.
 
bool registerClip (const std::string &lineId, const std::string &locale, float duration, const std::string &envelope)
 Register clip metadata; envelope is comma-separated 0..1 amplitudes.
 
bool bindSource (const std::string &lineId, const std::string &locale, audio::Source *source)
 Bind a playable Audio Source; the caller retains source ownership.
 
bool hasClip (const std::string &lineId, const std::string &locale) const
 True when clip.
 
void clear ()
 Clears .
 
bool play (const std::string &lineId, const std::string &locale)
 Play.
 
void stop ()
 Stops .
 
void update (float dt)
 Updates .
 
bool isPlaying () const
 True when playing.
 
float getTime () const
 Returns the time.
 
float getDuration () const
 Returns the duration.
 
float getAmplitude () const
 Returns the amplitude.
 
bool shouldAutoAdvance () const
 Should auto advance.
 
std::string getCurrentLineId () const
 Returns the current line id.
 
void setEnvelopeRate (float samplesPerSecond)
 Sets the envelope rate.
 
float getEnvelopeRate () const
 Returns the envelope rate.
 
- Public 成员函数 继承自 eve::Module
virtual ~Module ()
 Module.
 
virtual std::string getName () const =0
 Returns the name.
 

详细描述

Localized voice assets, duration-based advance, and amplitude lip sync.

在文件 DialogueVoice.h 第 18 行定义.

构造及析构函数说明

◆ ~DialogueVoice()

eve::dialogue::DialogueVoice::~DialogueVoice ( )
override

Dialogue voice.

在文件 DialogueVoice.cpp 第 14 行定义.

引用了 stop().

成员函数说明

◆ bindSource()

bool eve::dialogue::DialogueVoice::bindSource ( const std::string &  lineId,
const std::string &  locale,
audio::Source *  source 
)

Bind a playable Audio Source; the caller retains source ownership.

在文件 DialogueVoice.cpp 第 39 行定义.

引用了 clip, key , 以及 source.

被这些函数引用 eve::localization_editing::LocalizationVoiceAudition::play().

◆ clear()

void eve::dialogue::DialogueVoice::clear ( )

Clears .

在文件 DialogueVoice.cpp 第 67 行定义.

引用了 stop().

◆ getAmplitude()

float eve::dialogue::DialogueVoice::getAmplitude ( ) const

Returns the amplitude.

在文件 DialogueVoice.cpp 第 107 行定义.

引用了 getTime() , 以及 index.

◆ getCurrentLineId()

std::string eve::dialogue::DialogueVoice::getCurrentLineId ( ) const
inline

Returns the current line id.

在文件 DialogueVoice.h 第 51 行定义.

◆ getDuration()

float eve::dialogue::DialogueVoice::getDuration ( ) const

Returns the duration.

在文件 DialogueVoice.cpp 第 105 行定义.

◆ getEnvelopeRate()

float eve::dialogue::DialogueVoice::getEnvelopeRate ( ) const
inline

Returns the envelope rate.

在文件 DialogueVoice.h 第 55 行定义.

◆ getTime()

float eve::dialogue::DialogueVoice::getTime ( ) const

Returns the time.

在文件 DialogueVoice.cpp 第 101 行定义.

被这些函数引用 getAmplitude() , 以及 shouldAutoAdvance().

◆ hasClip()

bool eve::dialogue::DialogueVoice::hasClip ( const std::string &  lineId,
const std::string &  locale 
) const

True when clip.

在文件 DialogueVoice.cpp 第 63 行定义.

◆ isPlaying()

bool eve::dialogue::DialogueVoice::isPlaying ( ) const

True when playing.

在文件 DialogueVoice.cpp 第 97 行定义.

被这些函数引用 shouldAutoAdvance().

◆ Module_REG()

eve::dialogue::DialogueVoice::Module_REG ( DialogueVoice  )

◆ play()

bool eve::dialogue::DialogueVoice::play ( const std::string &  lineId,
const std::string &  locale 
)

Play.

在文件 DialogueVoice.cpp 第 72 行定义.

引用了 stop().

被这些函数引用 eve::localization_editing::LocalizationVoiceAudition::play().

◆ registerClip()

bool eve::dialogue::DialogueVoice::registerClip ( const std::string &  lineId,
const std::string &  locale,
float  duration,
const std::string &  envelope 
)

Register clip metadata; envelope is comma-separated 0..1 amplitudes.

在文件 DialogueVoice.cpp 第 20 行定义.

引用了 clip, duration, end, input, key , 以及 value.

◆ setEnvelopeRate()

void eve::dialogue::DialogueVoice::setEnvelopeRate ( float  samplesPerSecond)

Sets the envelope rate.

在文件 DialogueVoice.cpp 第 118 行定义.

◆ shouldAutoAdvance()

bool eve::dialogue::DialogueVoice::shouldAutoAdvance ( ) const

Should auto advance.

在文件 DialogueVoice.cpp 第 114 行定义.

引用了 getTime() , 以及 isPlaying().

◆ stop()

void eve::dialogue::DialogueVoice::stop ( )

Stops .

在文件 DialogueVoice.cpp 第 83 行定义.

被这些函数引用 clear(), eve::localization_editing::LocalizationVoiceAudition::play(), play() , 以及 ~DialogueVoice().

◆ update()

void eve::dialogue::DialogueVoice::update ( float  dt)

Updates .

在文件 DialogueVoice.cpp 第 91 行定义.


该类的文档由以下文件生成: