Localized voice assets, duration-based advance, and amplitude lip sync. 更多...
#include <DialogueVoice.h>
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()
|
override |
成员函数说明
◆ 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 行定义.
被这些函数引用 eve::localization_editing::LocalizationVoiceAudition::play().
◆ clear()
| void eve::dialogue::DialogueVoice::clear | ( | ) |
◆ getAmplitude()
| float eve::dialogue::DialogueVoice::getAmplitude | ( | ) | const |
◆ getCurrentLineId()
|
inline |
Returns the current line id.
在文件 DialogueVoice.h 第 51 行定义.
◆ getDuration()
| float eve::dialogue::DialogueVoice::getDuration | ( | ) | const |
Returns the duration.
在文件 DialogueVoice.cpp 第 105 行定义.
◆ getEnvelopeRate()
|
inline |
Returns the envelope rate.
在文件 DialogueVoice.h 第 55 行定义.
◆ getTime()
| float eve::dialogue::DialogueVoice::getTime | ( | ) | const |
◆ 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 |
◆ 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 | ||
| ) |
◆ setEnvelopeRate()
| void eve::dialogue::DialogueVoice::setEnvelopeRate | ( | float | samplesPerSecond | ) |
Sets the envelope rate.
在文件 DialogueVoice.cpp 第 118 行定义.
◆ shouldAutoAdvance()
| bool eve::dialogue::DialogueVoice::shouldAutoAdvance | ( | ) | const |
◆ 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 行定义.
该类的文档由以下文件生成:
- src/modules/dialogue/DialogueVoice.h
- src/modules/dialogue/DialogueVoice.cpp
Public 成员函数 继承自