MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / Open

Method Open

CrySoundSystem/PCMDecoder.cpp:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool CPCMDecoder::Open(const char *pszFilename)
82{
83 if (m_pFile)
84 return false;
85 m_pFile=m_pPak->FOpen(pszFilename, "rb");
86 if (!m_pFile)
87 return false;
88 m_nPosBytes=0;
89 m_FileInfo.sFilename=pszFilename;
90 if (!InitStreamWAV())
91 {
92 Close();
93 return false;
94 }
95 return true;
96}
97
98bool CPCMDecoder::Close()
99{

Callers 3

GetCodeMethod · 0.45
CheckLoaderFCMethod · 0.45
_GetSSFileInfoFunction · 0.45

Calls 1

FOpenMethod · 0.80

Tested by

no test coverage detected