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

Method loadToMem

extlibs/soloud/src/audiosource/tedsid/soloud_tedsid.cpp:181–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 }
180
181 result TedSid::loadToMem(const char *aFilename)
182 {
183 if (!aFilename)
184 return INVALID_PARAMETER;
185 MemoryFile *mf = new MemoryFile;
186 if (!mf) return OUT_OF_MEMORY;
187 int res = mf->openToMem(aFilename);
188 if (res != SO_NO_ERROR)
189 {
190 delete mf;
191 return res;
192 }
193 res = loadFile(mf);
194 if (res != SO_NO_ERROR)
195 {
196 delete mf;
197 return res;
198 }
199 mFileOwned = true;
200 return SO_NO_ERROR;
201 }
202
203 result TedSid::loadFileToMem(File *aFile)
204 {

Callers

nothing calls this directly

Calls 1

openToMemMethod · 0.80

Tested by

no test coverage detected