| 584 | } |
| 585 | |
| 586 | result WavStream::loadFileToMem(File *aFile) |
| 587 | { |
| 588 | delete[] mFilename; |
| 589 | delete mMemFile; |
| 590 | mStreamFile = 0; |
| 591 | mMemFile = 0; |
| 592 | mFilename = 0; |
| 593 | mSampleCount = 0; |
| 594 | |
| 595 | MemoryFile *mf = new MemoryFile(); |
| 596 | int res = mf->openFileToMem(aFile); |
| 597 | if (res != SO_NO_ERROR) |
| 598 | { |
| 599 | delete mf; |
| 600 | return res; |
| 601 | } |
| 602 | |
| 603 | res = parse(mf); |
| 604 | |
| 605 | if (res != SO_NO_ERROR) |
| 606 | { |
| 607 | delete mf; |
| 608 | return res; |
| 609 | } |
| 610 | |
| 611 | mMemFile = mf; |
| 612 | |
| 613 | return res; |
| 614 | } |
| 615 | |
| 616 | |
| 617 | result WavStream::parse(File *aFile) |
nothing calls this directly
no test coverage detected