MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / soundInstance

Function soundInstance

TheForceEngine/TFE_DarkForces/sound.cpp:434–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 SoundEffectId soundInstance(SoundSourceId soundId, s32 instance)
435 {
436 SoundEffectId id = soundId;
437 assert(id >= 0 && id <= c_soundIdMask);
438 id |= s64(instance & c_soundInstanceMask) << c_soundInstanceShift;
439 return id;
440 }
441
442 GameSound* getSoundPtr(SoundSourceId id)
443 {

Callers 3

sound_getSoundFromIndexFunction · 0.85
sound_loadFunction · 0.85
sound_playPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected