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

Function DemoRead3DSound

Descent3/demofile.cpp:682–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680}
681
682void DemoRead3DSound(void) {
683 int objnum;
684 int16_t soundidx;
685 float volume;
686
687 objnum = cf_ReadShort(Demo_cfp);
688
689 soundidx = cf_ReadShort(Demo_cfp);
690 volume = cf_ReadFloat(Demo_cfp);
691
692 Sound_system.Play3dSound(soundidx, &Objects[objnum], volume);
693}
694
695void DemoWriteScriptEvent() {}
696

Callers 1

DemoFrameFunction · 0.85

Calls 3

cf_ReadShortFunction · 0.85
cf_ReadFloatFunction · 0.85
Play3dSoundMethod · 0.80

Tested by

no test coverage detected