MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / PlaySoundSources

Function PlaySoundSources

TombEngine/Sound/sound.cpp:1191–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189}
1190
1191void PlaySoundSources()
1192{
1193 for (const auto& soundSource : g_Level.SoundSources)
1194 {
1195 int group = soundSource.Flags & 0x1FFF;
1196
1197 if (group >= MAX_FLIPMAP)
1198 continue;
1199
1200 if ((!FlipStats[group] && (soundSource.Flags & SS_FLAG_PLAY_FLIP_ROOM)) ||
1201 (FlipStats[group] && (soundSource.Flags & SS_FLAG_PLAY_BASE_ROOM)))
1202 {
1203 continue;
1204 }
1205
1206 SoundEffect(soundSource.SoundID, (Pose*)&soundSource.Position);
1207 }
1208}

Callers 2

GamePhaseFunction · 0.85
FreezePhaseFunction · 0.85

Calls 1

SoundEffectFunction · 0.85

Tested by

no test coverage detected