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

Method hasSourceChanged

core/src/core/simulation_data.cpp:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool SimulationData::hasSourceChanged() const
148{
149 auto changed = ((reflectionInputs.source.origin - reflectionState.prevSource.origin).length() > 1e-4f);
150 changed = changed || ((reflectionInputs.source.ahead - reflectionState.prevSource.ahead).length() > 1e-4f);
151 changed = changed || ((reflectionInputs.source.up - reflectionState.prevSource.up).length() > 1e-4f);
152 changed = changed || (fabsf(reflectionInputs.directivity.dipoleWeight - reflectionState.prevDirectivity.dipoleWeight) > 1e-4f);
153 changed = changed || (fabsf(reflectionInputs.directivity.dipolePower - reflectionState.prevDirectivity.dipolePower) > 1e-4f);
154 return changed;
155}
156
157}

Callers 1

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected