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

Method createReflectionEffect

core/src/core/api_indirect_effect.cpp:215–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213// --------------------------------------------------------------------------------------------------------------------
214
215IPLerror CContext::createReflectionEffect(IPLAudioSettings* audioSettings,
216 IPLReflectionEffectSettings* effectSettings,
217 IReflectionEffect** effect)
218{
219 if (!audioSettings || !effectSettings || !effect)
220 return IPL_STATUS_FAILURE;
221
222 if (audioSettings->samplingRate <= 0 || audioSettings->frameSize <= 0)
223 return IPL_STATUS_FAILURE;
224
225 try
226 {
227 auto _effect = reinterpret_cast<CReflectionEffect*>(gMemory().allocate(sizeof(CReflectionEffect), Memory::kDefaultAlignment));
228 new (_effect) CReflectionEffect(this, audioSettings, effectSettings);
229 *effect = _effect;
230 }
231 catch (Exception e)
232 {
233 return static_cast<IPLerror>(e.status());
234 }
235
236 return IPL_STATUS_SUCCESS;
237}
238
239IPLerror CContext::createReflectionMixer(IPLAudioSettings* audioSettings,
240 IPLReflectionEffectSettings* effectSettings,

Callers 5

Calls 2

statusMethod · 0.80
allocateMethod · 0.45

Tested by

no test coverage detected