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

Function getOggData

extlibs/soloud/src/audiosource/wav/soloud_wavstream.cpp:214–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 }
213
214 static int getOggData(float **aOggOutputs, float *aBuffer, int aSamples, int aPitch, int aFrameSize, int aFrameOffset, int aChannels)
215 {
216 if (aFrameSize <= 0)
217 return 0;
218
219 int samples = aSamples;
220 if (aFrameSize - aFrameOffset < samples)
221 {
222 samples = aFrameSize - aFrameOffset;
223 }
224
225 int i;
226 for (i = 0; i < aChannels; i++)
227 {
228 memcpy(aBuffer + aPitch * i, aOggOutputs[i] + aFrameOffset, sizeof(float) * samples);
229 }
230 return samples;
231 }
232
233
234

Callers 1

getAudioMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected