refactor: move wave length calculation to util class
This commit is contained in:
parent
659db9b063
commit
5fddfed5ce
8 changed files with 87 additions and 86 deletions
|
|
@ -348,7 +348,7 @@ void BotConfig::loadChatterConfig () {
|
|||
|
||||
for (auto &sound : sentences) {
|
||||
sound.trim ().trim ("\"");
|
||||
auto duration = game.getWaveLen (sound.chars ());
|
||||
const auto duration = util.getWaveLength (sound.chars ());
|
||||
|
||||
if (duration > 0.0f) {
|
||||
m_chatter[event.code].emplace (cr::move (sound), event.repeat, duration);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue