Lines Matching refs:S_sfx

30 extern sfxinfo_t S_sfx[];
183 if(!strcmp(S_sfx[i].tagName, name)) in S_GetSoundID()
253 priority = S_sfx[sound_id].priority;
276 priority = S_sfx[sound_id].priority;
321 if(S_sfx[SChannel[i].sound_id].usefulness > 0)
323 S_sfx[SChannel[i].sound_id].usefulness--;
329 if(S_sfx[sound_id].lumpnum == 0)
331 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]);
333 if(S_sfx[sound_id].snd_ptr == NULL)
338 sprintf(name, "%s%s.lmp", ArchivePath, S_sfx[sound_id].lumpname);
339 M_ReadFile(name, (byte **)&S_sfx[sound_id].snd_ptr);
343 S_sfx[sound_id].snd_ptr = W_CacheLumpNum(S_sfx[sound_id].lumpnum,
380 if(S_sfx[sound_id].changePitch)
388 SChannel[i].handle = I_StartSound( sound_id, S_sfx[sound_id].snd_ptr, vol,
394 if(S_sfx[sound_id].usefulness < 0)
396 S_sfx[sound_id].usefulness = 1;
400 S_sfx[sound_id].usefulness++;
450 priority = S_sfx[sound_id].priority; in S_StartSoundAtVolume()
507 if(S_sfx[SChannel[i].sound_id].usefulness > 0) in S_StartSoundAtVolume()
509 S_sfx[SChannel[i].sound_id].usefulness--; in S_StartSoundAtVolume()
515 if(S_sfx[sound_id].lumpnum == 0) in S_StartSoundAtVolume()
517 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume()
519 if(S_sfx[sound_id].snd_ptr == NULL) in S_StartSoundAtVolume()
524 sprintf(name, "%s%s.lmp", ArchivePath, S_sfx[sound_id].lumpname); in S_StartSoundAtVolume()
525 M_ReadFile(name, (byte **)&S_sfx[sound_id].snd_ptr); in S_StartSoundAtVolume()
529 S_sfx[sound_id].snd_ptr = W_CacheLumpNum(S_sfx[sound_id].lumpnum, in S_StartSoundAtVolume()
558 if(S_sfx[sound_id].changePitch) in S_StartSoundAtVolume()
566 SChannel[i].handle = I_StartSound(sound_id, S_sfx[sound_id].snd_ptr, vol, in S_StartSoundAtVolume()
572 if(S_sfx[sound_id].usefulness < 0) in S_StartSoundAtVolume()
574 S_sfx[sound_id].usefulness = 1; in S_StartSoundAtVolume()
578 S_sfx[sound_id].usefulness++; in S_StartSoundAtVolume()
593 if(S_sfx[sound_id].numchannels == -1) in S_StopSoundID()
611 if(found < S_sfx[sound_id].numchannels) in S_StopSoundID()
625 if(S_sfx[SChannel[lp].sound_id].usefulness > 0) in S_StopSoundID()
627 S_sfx[SChannel[lp].sound_id].usefulness--; in S_StopSoundID()
649 if(S_sfx[SChannel[i].sound_id].usefulness > 0) in S_StopSound()
651 S_sfx[SChannel[i].sound_id].usefulness--; in S_StopSound()
752 if(S_sfx[i].usefulness == 0 && S_sfx[i].snd_ptr) in S_UpdateSounds()
754 S_sfx[i].usefulness = -1; in S_UpdateSounds()
762 if(S_sfx[i].usefulness == 0 && S_sfx[i].snd_ptr) in S_UpdateSounds()
764 if(lumpcache[S_sfx[i].lumpnum]) in S_UpdateSounds()
767 (lumpcache[S_sfx[i].lumpnum])- in S_UpdateSounds()
770 Z_ChangeTag2(lumpcache[S_sfx[i].lumpnum], in S_UpdateSounds()
774 S_sfx[i].usefulness = -1; in S_UpdateSounds()
775 S_sfx[i].snd_ptr = NULL; in S_UpdateSounds()
783 if(!SChannel[i].handle || S_sfx[SChannel[i].sound_id].usefulness == -1) in S_UpdateSounds()
789 if(S_sfx[SChannel[i].sound_id].usefulness > 0) in S_UpdateSounds()
791 S_sfx[SChannel[i].sound_id].usefulness--; in S_UpdateSounds()
837 priority = S_sfx[SChannel[i].sound_id].priority; in S_UpdateSounds()
883 c->name = S_sfx[c->id].lumpname; in S_GetChannelInfo()
999 if(!strcmp(S_sfx[i].tagName, sc_String)) in S_InitScript()
1004 strcpy(S_sfx[i].lumpname, sc_String); in S_InitScript()
1008 strcpy(S_sfx[i].lumpname, "default"); in S_InitScript()
1023 if(!strcmp(S_sfx[i].lumpname, "")) in S_InitScript()
1025 strcpy(S_sfx[i].lumpname, "default"); in S_InitScript()