MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / stop_sound

Function stop_sound

src/SB/Game/zEntCruiseBubble.cpp:201–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199 }
200
201 void stop_sound(S32 which, U32 handle)
202 {
203 sound_config* s = &sounds[which];
204
205 if (s->id == 0)
206 {
207 if (s->streamed == 0)
208 {
209 for (S32 i = s->first; i <= s->last; ++i)
210 {
211 zEntPlayer_SNDStop((_tagePlayerSnd)i);
212 }
213 }
214 return;
215 }
216
217 if (handle == 0)
218 {
219 handle = s->handle;
220 }
221
222 if (handle != 0)
223 {
224 xSndStop(handle);
225 }
226
227 s->handle = 0;
228 }
229
230 U32 play_sound(S32 which, F32 volFactor)
231 {

Callers 2

stopMethod · 0.70
abortMethod · 0.70

Calls 2

zEntPlayer_SNDStopFunction · 0.85
xSndStopFunction · 0.85

Tested by

no test coverage detected