MCPcopy Create free account
hub / github.com/ValveSoftware/steam-audio / createReconstructor

Method createReconstructor

core/src/core/api_reconstructor.cpp:111–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109// --------------------------------------------------------------------------------------------------------------------
110
111IPLerror CContext::createReconstructor(const IPLReconstructorSettings* settings, IReconstructor** reconstructor)
112{
113 if (!settings || !reconstructor)
114 return IPL_STATUS_FAILURE;
115
116 try
117 {
118 auto _reconstructor = reinterpret_cast<CReconstructor*>(gMemory().allocate(sizeof(CReconstructor), Memory::kDefaultAlignment));
119 new (_reconstructor) CReconstructor(this, settings);
120 *reconstructor = _reconstructor;
121 }
122 catch (Exception e)
123 {
124 return static_cast<IPLerror>(e.status());
125 }
126
127 return IPL_STATUS_SUCCESS;
128}
129
130}

Callers 5

iplReconstructorCreateFunction · 0.45
iplReconstructorCreateFunction · 0.45
iplReconstructorCreateFunction · 0.45
iplReconstructorCreateFunction · 0.45
iplReconstructorCreateFunction · 0.45

Calls 2

statusMethod · 0.80
allocateMethod · 0.45

Tested by

no test coverage detected