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

Method loadMem

extlibs/soloud/src/audiosource/wav/soloud_wav.cpp:305–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303 }
304
305 result Wav::loadMem(unsigned char *aMem, unsigned int aLength, bool aCopy, bool aTakeOwnership)
306 {
307 if (aMem == NULL || aLength == 0)
308 return INVALID_PARAMETER;
309 stop();
310
311 MemoryFile dr;
312 dr.openMem(aMem, aLength, aCopy, aTakeOwnership);
313 return testAndLoadFile(&dr);
314 }
315
316 result Wav::loadFile(File *aFile)
317 {

Callers

nothing calls this directly

Calls 1

openMemMethod · 0.80

Tested by

no test coverage detected