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

Function zMusicKill

src/SB/Game/zMusic.cpp:410–423  ·  view source on GitHub ↗

Stop all tracks and set them to null.

Source from the content-addressed store, hash-verified

408
409// Stop all tracks and set them to null.
410void zMusicKill()
411{
412 for (S32 i = 0; i < 2; i++)
413 {
414 zMusicTrackInfo* track = &sMusicTrack[i];
415 if (track->snd_id != 0)
416 {
417 xSndStop(track->snd_id);
418 track->snd_id = 0;
419 track->loop = 0;
420 track->situation = NULL;
421 }
422 }
423}
424
425// Pause music by stopping any non-null tracks.
426void zMusicPause()

Callers 2

zGameExitFunction · 0.70
zMenuExitFunction · 0.70

Calls 1

xSndStopFunction · 0.85

Tested by

no test coverage detected