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

Method apply

core/src/core/api_panning_effect.cpp:76–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76IPLAudioEffectState CPanningEffect::apply(IPLPanningEffectParams* params,
77 IPLAudioBuffer* in,
78 IPLAudioBuffer* out)
79{
80 auto _effect = mHandle.get();
81 if (!_effect)
82 return IPL_AUDIOEFFECTSTATE_TAILCOMPLETE;
83
84 AudioBuffer _in(in->numChannels, in->numSamples, in->data);
85 AudioBuffer _out(out->numChannels, out->numSamples, out->data);
86
87 PanningEffectParams _params{};
88 _params.direction = reinterpret_cast<const Vector3f*>(&params->direction);
89
90 return static_cast<IPLAudioEffectState>(_effect->apply(_params, _in, _out));
91}
92
93IPLint32 CPanningEffect::getTailSize()
94{

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected