| 21 | } |
| 22 | |
| 23 | int CPCMDecoder::ReadFile(void *pBuf, int nSize, int nCount, int *pNewFilePos) |
| 24 | { |
| 25 | if (!m_pFile) |
| 26 | return false; |
| 27 | int nBytesRead=m_pPak->FRead(pBuf, nSize, nCount, m_pFile); |
| 28 | if (nBytesRead!=nCount) |
| 29 | { |
| 30 | m_nPosBytes=m_pPak->FTell(m_pFile); |
| 31 | if (pNewFilePos) |
| 32 | *pNewFilePos=m_nPosBytes; |
| 33 | return 0; |
| 34 | } |
| 35 | m_nPosBytes+=nSize*nCount; |
| 36 | if (pNewFilePos) |
| 37 | *pNewFilePos=m_nPosBytes; |
| 38 | return nBytesRead; |
| 39 | } |
| 40 | |
| 41 | bool CPCMDecoder::InitStreamWAV() |
| 42 | { |
no test coverage detected