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

Method CImpulseResponse

core/src/core/api_impulse_response.cpp:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace api {
24
25CImpulseResponse::CImpulseResponse(CContext* context, const IPLImpulseResponseSettings* settings)
26{
27 if (!context || !settings)
28 throw Exception(Status::Failure);
29
30 auto _context = context->mHandle.get();
31 auto _duration = settings->duration;
32 auto _order = settings->order;
33 auto _samplingRate = settings->samplingRate;
34
35 if (!_context)
36 throw Exception(Status::Failure);
37
38 new (&mHandle) Handle<ImpulseResponse>(ipl::make_shared<ImpulseResponse>(_duration, _order, _samplingRate), _context);
39}
40
41IImpulseResponse* CImpulseResponse::retain()
42{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected