MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / RenderSound

Function RenderSound

Descent3/TelcomEffectsRender.cpp:875–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873 tce->age += frametime;
874}
875void RenderSound(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) {
876 if (!ok_to_render)
877 return;
878 ASSERT(tce->type == EFX_SOUND);
879 tce->age += frametime;
880 if (tce->soundinfo.started)
881 return;
882 tce->soundinfo.started = true;
883 if (tce->soundinfo.handle != -1)
884 Sound_system.Play2dSound(tce->soundinfo.handle, MAX_GAME_VOLUME);
885}
886#define FLASH_SWITCH 1.0f
887extern tceffect TCEffects[MAX_TCEFFECTS];
888void RenderButton(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) {

Callers 1

RenderEffectFunction · 0.85

Calls 1

Play2dSoundMethod · 0.80

Tested by

no test coverage detected