MCPcopy Create free account
hub / github.com/defold/defold / GetRampDelta

Function GetRampDelta

engine/sound/src/sound.cpp:126–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 };
125
126 float GetRampDelta(const MixContext* mix_context, const Value* value, uint32_t total_samples, float& from)
127 {
128 float ramp_length = (value->m_Current - value->m_Prev) / mix_context->m_TotalBuffers;
129 from = value->m_Prev + ramp_length * mix_context->m_CurrentBuffer;
130 return ramp_length / total_samples;
131 }
132
133 void GetRampDelta(uint32_t num_channels, const MixContext* mix_context, const Value value[], uint32_t total_samples, float from[], float delta[])
134 {

Callers 3

MixResampleIdentityFunction · 0.85
MixResamplePolyphaseFunction · 0.85
MasterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected