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

Function PlayVoice

Descent3/voice.cpp:123–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void PlayVoice(char *filename, int flags) {
124#ifdef DEMO
125 return;
126#endif
127 if ((!PlayPowerupVoice) && (flags & VF_POWERUP) && (!(flags & VF_FORCE)))
128 return;
129 if ((CurrentVoiceHandle.inuse) && (flags & VF_INTERUPT)) {
130 StopVoice();
131 vq.Clear();
132 }
133 vq.AddVoice(filename, flags);
134}
135
136void StartVoice(char *filename, int flags) {
137#ifdef DEMO

Callers

nothing calls this directly

Calls 3

StopVoiceFunction · 0.85
AddVoiceMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected