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

Function StepInstanceValues

engine/sound/src/sound.cpp:1924–1940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1922 }
1923
1924 static void StepInstanceValues()
1925 {
1926 SoundSystem* sound = g_SoundSystem;
1927
1928 uint32_t instances = sound->m_Instances.Size();
1929 for (uint32_t i = 0; i < instances; ++i) {
1930 SoundInstance* instance = &sound->m_Instances[i];
1931 if (instance->m_Playing || instance->m_FrameCount > 0) {
1932 instance->m_Gain.Step();
1933 instance->m_Pan.Step();
1934 for(uint32_t c=0; c<SOUND_MAX_DECODE_CHANNELS; ++c) {
1935 instance->m_ScaleL[c].Step();
1936 instance->m_ScaleR[c].Step();
1937 }
1938 }
1939 }
1940 }
1941
1942 static Result UpdateInternal(SoundSystem* sound)
1943 {

Callers 1

UpdateInternalFunction · 0.85

Calls 2

SizeMethod · 0.45
StepMethod · 0.45

Tested by

no test coverage detected