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

Method createReflectionMixer

core/src/core/api_indirect_effect.cpp:239–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239IPLerror CContext::createReflectionMixer(IPLAudioSettings* audioSettings,
240 IPLReflectionEffectSettings* effectSettings,
241 IReflectionMixer** mixer)
242{
243 if (!audioSettings || !effectSettings || !mixer)
244 return IPL_STATUS_FAILURE;
245
246 if (audioSettings->samplingRate <= 0 || audioSettings->frameSize <= 0)
247 return IPL_STATUS_FAILURE;
248
249 try
250 {
251 auto _mixer = reinterpret_cast<CReflectionMixer*>(gMemory().allocate(sizeof(CReflectionMixer), Memory::kDefaultAlignment));
252 new (_mixer) CReflectionMixer(this, audioSettings, effectSettings);
253 *mixer = _mixer;
254 }
255 catch (Exception e)
256 {
257 return static_cast<IPLerror>(e.status());
258 }
259
260 return IPL_STATUS_SUCCESS;
261}
262
263}

Callers 5

iplReflectionMixerCreateFunction · 0.45
iplReflectionMixerCreateFunction · 0.45
iplReflectionMixerCreateFunction · 0.45
iplReflectionMixerCreateFunction · 0.45
iplReflectionMixerCreateFunction · 0.45

Calls 2

statusMethod · 0.80
allocateMethod · 0.45

Tested by

no test coverage detected