| 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 | { |
no test coverage detected