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

Method createSimulator

core/src/core/api_simulator.cpp:483–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481// --------------------------------------------------------------------------------------------------------------------
482
483IPLerror CContext::createSimulator(IPLSimulationSettings* settings,
484 ISimulator** simulator)
485{
486 if (!settings || !simulator)
487 return IPL_STATUS_FAILURE;
488
489 try
490 {
491 auto _simulator = reinterpret_cast<CSimulator*>(gMemory().allocate(sizeof(CSimulator), Memory::kDefaultAlignment));
492 new (_simulator) CSimulator(this, settings);
493 *simulator = _simulator;
494 }
495 catch (Exception e)
496 {
497 return static_cast<IPLerror>(e.status());
498 }
499
500 return IPL_STATUS_SUCCESS;
501}
502
503}

Callers 5

iplSimulatorCreateFunction · 0.45
iplSimulatorCreateFunction · 0.45
iplSimulatorCreateFunction · 0.45
iplSimulatorCreateFunction · 0.45
iplSimulatorCreateFunction · 0.45

Calls 2

statusMethod · 0.80
allocateMethod · 0.45

Tested by

no test coverage detected