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

Function DemoRead2DSound

Descent3/demofile.cpp:668–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668void DemoRead2DSound(void) {
669 int soundidx = cf_ReadShort(Demo_cfp);
670 float volume = cf_ReadFloat(Demo_cfp);
671
672 Sound_system.Play2dSound(soundidx, volume);
673}
674
675void DemoWrite3DSound(int16_t soundidx, uint16_t objnum, int priority, float volume) {
676 cf_WriteByte(Demo_cfp, DT_3D_SOUND);

Callers 1

DemoFrameFunction · 0.85

Calls 3

cf_ReadShortFunction · 0.85
cf_ReadFloatFunction · 0.85
Play2dSoundMethod · 0.80

Tested by

no test coverage detected