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

Method rewind

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

Source from the content-addressed store, hash-verified

88 }
89
90 result SpeechInstance::rewind()
91 {
92 mSynth.init(mParent->mBaseFrequency, mParent->mBaseSpeed, mParent->mBaseDeclination, mParent->mBaseWaveform);
93 mSynth.initsynth(mParent->mElement.getSize(), (unsigned char *)mParent->mElement.getData());
94 mOffset = 10;
95 mSampleCount = 10;
96 mStreamPosition = 0.0f;
97 return 0;
98 }
99
100 bool SpeechInstance::hasEnded()
101 {

Callers

nothing calls this directly

Calls 4

initsynthMethod · 0.80
getDataMethod · 0.80
initMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected