| 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 | { |