MCPcopy Create free account
hub / github.com/diasurgical/devilution / effect_is_playing

Function effect_is_playing

Source/effects.cpp:906–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904};
905
906BOOL effect_is_playing(int nSFX)
907{
908 TSFX *sfx = &sgSFX[nSFX];
909 if (sfx->pSnd)
910 return snd_playing(sfx->pSnd);
911
912 if (sfx->bFlags & SFX_STREAM)
913 return sfx == sfx_data_cur;
914
915 return FALSE;
916}
917
918void sfx_stop()
919{

Callers 9

M_DoTalkFunction · 0.85
MAI_GarbudFunction · 0.85
MAI_ZharFunction · 0.85
MAI_SnotSpilFunction · 0.85
MAI_LazurusFunction · 0.85
MAI_LachdananFunction · 0.85
MAI_WarlordFunction · 0.85
TalkToTownerFunction · 0.85
CowSFXFunction · 0.85

Calls 1

snd_playingFunction · 0.85

Tested by

no test coverage detected