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

Function sound_adjustCued

TheForceEngine/TFE_DarkForces/sound.cpp:332–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330 }
331
332 void sound_adjustCued(SoundEffectId id, vec3_fixed pos)
333 {
334 if (id)
335 {
336 s32 vol, pan;
337 GameSound* sound = getSoundPtr(id);
338 soundCalculateCue(sound, pos.x, pos.y, pos.z, &vol, &pan);
339 sound_setVolume(id, vol);
340 sound_setPan(id, pan);
341 }
342 }
343
344 void sound_stop(SoundEffectId id)
345 {

Callers 1

projectileTaskFuncFunction · 0.85

Calls 4

getSoundPtrFunction · 0.85
soundCalculateCueFunction · 0.85
sound_setVolumeFunction · 0.85
sound_setPanFunction · 0.85

Tested by

no test coverage detected