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

Method CContext

core/src/core/api_context.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44CContext::CContext(IPLContextSettings* settings)
45{
46 auto _logCallback = reinterpret_cast<LogCallback>(settings->logCallback);
47 auto _allocateCallback = reinterpret_cast<AllocateCallback>(settings->allocateCallback);
48 auto _freeCallback = reinterpret_cast<FreeCallback>(settings->freeCallback);
49 auto _simdLevel = static_cast<SIMDLevel>(settings->simdLevel);
50
51 new (&mHandle) Handle<Context>(ipl::make_shared<Context>(_logCallback, _allocateCallback, _freeCallback, _simdLevel, settings->version), nullptr);
52}
53
54IContext* CContext::retain()
55{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected