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

Function setSource

fmod/src/spatialize_effect.cpp:709–724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void setSource(FMOD_DSP_STATE* state,
710 IPLSource source)
711{
712 auto effect = reinterpret_cast<State*>(state->plugindata);
713
714 if (source == effect->simulationSource[1])
715 return;
716
717 if (!effect->newSimulationSourceWritten)
718 {
719 iplSourceRelease(&effect->simulationSource[1]);
720 effect->simulationSource[1] = iplSourceRetain(source);
721
722 effect->newSimulationSourceWritten = true;
723 }
724}
725
726FMOD_RESULT F_CALL setInt(FMOD_DSP_STATE* state,
727 int index,

Callers 1

setIntFunction · 0.70

Calls 2

iplSourceReleaseFunction · 0.50
iplSourceRetainFunction · 0.50

Tested by

no test coverage detected