MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / setText

Method setText

extlibs/soloud/src/audiosource/speech/soloud_speech.cpp:116–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 result Speech::setText(const char *aText)
117 {
118 if (aText == NULL)
119 return INVALID_PARAMETER;
120
121 stop();
122 mElement.clear();
123 darray phone;
124 xlate_string(aText, &phone);
125 mFrames = klatt::phone_to_elm(phone.getData(), phone.getSize(), &mElement);
126 return 0;
127 }
128
129 Speech::Speech()
130 {

Callers

nothing calls this directly

Calls 4

xlate_stringFunction · 0.85
getDataMethod · 0.80
clearMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected