MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / OGGLoadFile

Function OGGLoadFile

engine/Poseidon/Audio/Streaming/WaveStreamOGG.cpp:185–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185WaveStream* OGGLoadFile(const char* name)
186{
187 QIFStream in;
188 GFileServer->Open(in, name);
189 if (in.fail() || in.eof())
190 {
191 return nullptr;
192 }
193
194 if (in.rest() <= 0)
195 {
196 return nullptr;
197 }
198
199 WaveStreamOGG* ret = new WaveStreamOGG(in);
200 if (ret->GetError())
201 {
202 delete ret;
203 return nullptr;
204 }
205 return ret;
206}
207
208} // namespace Poseidon

Callers 1

SoundLoadFileFunction · 0.85

Calls 5

restMethod · 0.80
OpenMethod · 0.45
failMethod · 0.45
eofMethod · 0.45
GetErrorMethod · 0.45

Tested by

no test coverage detected