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

Function writesamples

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

Source from the content-addressed store, hash-verified

44 }
45
46 static void writesamples(short * aSrc, float * aDst, int aCount)
47 {
48 int i;
49 for (i = 0; i < aCount; i++)
50 {
51 aDst[i] = aSrc[i] * (1 / (float)0x8000);
52 }
53 }
54
55 unsigned int SpeechInstance::getAudio(float *aBuffer, unsigned int aSamplesToRead, unsigned int aBufferSize)
56 {

Callers 1

getAudioMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected