/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/ |
H A D | sounds.c | 205 sfxinfo_t S_sfx[NUMSFX] = variable 524 S_sfx[i].name = NULL; in S_InitRuntimeSounds() 540 if(!S_sfx[sfxid].name) in S_AddSoundFx() 575 S_sfx[sfxid].name[6]='\0'; in S_AddSoundFx() 576 S_sfx[sfxid].flags= flags; in S_AddSoundFx() 577 S_sfx[sfxid].priority=60; in S_AddSoundFx() 578 S_sfx[sfxid].link=NULL; in S_AddSoundFx() 579 S_sfx[sfxid].link_mod=0; in S_AddSoundFx() 584 S_sfx[sfxid].skinsound= -1; in S_AddSoundFx() 588 S_sfx[sfxid].data=NULL; in S_AddSoundFx() [all …]
|
/dports/games/uhexen/uhexen-0.601/src/ |
H A D | i_sound.c | 30 extern sfxinfo_t S_sfx[]; 331 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); 343 S_sfx[sound_id].snd_ptr = W_CacheLumpNum(S_sfx[sound_id].lumpnum, 400 S_sfx[sound_id].usefulness++; 517 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume() 529 S_sfx[sound_id].snd_ptr = W_CacheLumpNum(S_sfx[sound_id].lumpnum, in S_StartSoundAtVolume() 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() 774 S_sfx[i].usefulness = -1; in S_UpdateSounds() [all …]
|
/dports/games/zdoom/zdoom-2.8.1/src/ |
H A D | s_advsound.cpp | 313 S_sfx.ShrinkToFit (); in S_HashSounds() 314 size = S_sfx.Size (); in S_HashSounds() 318 S_sfx[i].index = 0; in S_HashSounds() 324 S_sfx[i].next = S_sfx[j].index; in S_HashSounds() 325 S_sfx[j].index = i; in S_HashSounds() 436 i = S_sfx[MakeKey (logicalname) % S_sfx.Size ()].index; in S_FindSound() 439 i = S_sfx[i].next; in S_FindSound() 872 S_sfx.Clear(); in S_ClearSoundData() 933 S_sfx.ShrinkToFit (); in S_ParseSndInfo() 1697 ((S_sfx[sndnum].lumpnum == -1 || S_sfx[sndnum].lumpnum == sfx_empty) && in S_LookupPlayerSound() [all …]
|
H A D | s_sound.cpp | 412 S_UnloadSound(&S_sfx[i]); in S_Start() 475 S_sfx[i].bUsed = false; in S_PrecacheLevel() 499 if (S_sfx[i].bUsed) in S_PrecacheLevel() 501 S_CacheSound (&S_sfx[i]); in S_PrecacheLevel() 506 if (!S_sfx[i].bUsed && S_sfx[i].link == sfxinfo_t::NO_LINK) in S_PrecacheLevel() 508 S_UnloadSound (&S_sfx[i]); in S_PrecacheLevel() 536 sfx = &S_sfx[sfx->link]; in S_CacheSound() 889 sfx = &S_sfx[sound_id]; in S_StartSound() 940 sfx = &S_sfx[sound_id]; in S_StartSound() 1307 …if (S_sfx[i].data.isValid() && S_sfx[i].link == sfxinfo_t::NO_LINK && S_sfx[i].lumpnum == sfx->lum… in S_LoadSound() [all …]
|
/dports/games/chocolate-doom/chocolate-doom-3.0.1/src/heretic/ |
H A D | s_sound.c | 164 priority = S_sfx[sound_id].priority; in S_StartSound() 246 if (S_sfx[sound_id].lumpnum == 0) in S_StartSound() 248 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSound() 282 S_sfx[sound_id].usefulness = 1; in S_StartSound() 286 S_sfx[sound_id].usefulness++; in S_StartSound() 323 if (S_sfx[sound_id].lumpnum == 0) in S_StartSoundAtVolume() 325 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume() 335 S_sfx[sound_id].usefulness = 1; in S_StartSoundAtVolume() 339 S_sfx[sound_id].usefulness++; in S_StartSoundAtVolume() 533 I_PrecacheSounds(S_sfx, NUMSFX); in S_Init() [all …]
|
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/src/heretic/ |
H A D | s_sound.c | 172 priority = S_sfx[sound_id].priority; in S_StartSound() 254 if (S_sfx[sound_id].lumpnum == 0) in S_StartSound() 256 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSound() 290 S_sfx[sound_id].usefulness = 1; in S_StartSound() 294 S_sfx[sound_id].usefulness++; in S_StartSound() 331 if (S_sfx[sound_id].lumpnum == 0) in S_StartSoundAtVolume() 333 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume() 343 S_sfx[sound_id].usefulness = 1; in S_StartSoundAtVolume() 347 S_sfx[sound_id].usefulness++; in S_StartSoundAtVolume() 541 I_PrecacheSounds(S_sfx, NUMSFX); in S_Init() [all …]
|
/dports/games/crispy-doom/crispy-doom-crispy-doom-5.10.3/src/hexen/ |
H A D | s_sound.c | 68 extern sfxinfo_t S_sfx[]; 410 priority = S_sfx[sound_id].priority; in S_StartSoundAtVolume() 502 if (S_sfx[sound_id].pitch) in S_StartSoundAtVolume() 511 if (S_sfx[sound_id].lumpnum == 0) in S_StartSoundAtVolume() 513 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume() 524 if (S_sfx[sound_id].usefulness < 0) in S_StartSoundAtVolume() 526 S_sfx[sound_id].usefulness = 1; in S_StartSoundAtVolume() 530 S_sfx[sound_id].usefulness++; in S_StartSoundAtVolume() 808 I_PrecacheSounds(S_sfx, NUMSFX); in S_Init() 856 c->name = S_sfx[c->id].name; in S_GetChannelInfo() [all …]
|
/dports/games/chocolate-doom/chocolate-doom-3.0.1/src/hexen/ |
H A D | s_sound.c | 68 extern sfxinfo_t S_sfx[]; 410 priority = S_sfx[sound_id].priority; in S_StartSoundAtVolume() 502 if (S_sfx[sound_id].pitch) in S_StartSoundAtVolume() 511 if (S_sfx[sound_id].lumpnum == 0) in S_StartSoundAtVolume() 513 S_sfx[sound_id].lumpnum = I_GetSfxLumpNum(&S_sfx[sound_id]); in S_StartSoundAtVolume() 524 if (S_sfx[sound_id].usefulness < 0) in S_StartSoundAtVolume() 526 S_sfx[sound_id].usefulness = 1; in S_StartSoundAtVolume() 530 S_sfx[sound_id].usefulness++; in S_StartSoundAtVolume() 808 I_PrecacheSounds(S_sfx, NUMSFX); in S_Init() 856 c->name = S_sfx[c->id].name; in S_GetChannelInfo() [all …]
|
/dports/games/odamex/odamex-src-0.7.0/server/src/ |
H A D | s_sound.cpp | 240 S_sfx[i].index = ~0; in S_HashSounds() 246 S_sfx[i].next = S_sfx[j].index; in S_HashSounds() 247 S_sfx[j].index = i; in S_HashSounds() 259 i = S_sfx[i].next; in S_FindSound() 271 if (S_sfx[i].lumpnum == lump) in S_FindSoundByLump() 281 S_sfx = (sfxinfo_struct *)Realloc (S_sfx, maxsfx * sizeof(*S_sfx)); in S_AddSoundLump() 286 S_sfx[numsfx].data = NULL; in S_AddSoundLump() 287 S_sfx[numsfx].link = NULL; in S_AddSoundLump() 288 S_sfx[numsfx].lumpnum = lump; in S_AddSoundLump() 294 M_Free(S_sfx); in S_ClearSoundLumps() [all …]
|
/dports/games/vavoom/vavoom-1.33/source/ |
H A D | snd_data.cpp | 89 if (S_sfx[i].Data) in ~VSoundManager() 91 Z_Free(S_sfx[i].Data); in ~VSoundManager() 93 if (S_sfx[i].Sounds) in ~VSoundManager() 95 delete[] S_sfx[i].Sounds; in ~VSoundManager() 96 S_sfx[i].Sounds = NULL; in ~VSoundManager() 157 S_sfx[id].ChangePitch = 0; in Init() 171 S_sfx.Condense(); in Init() 515 return S_sfx.Append(S); in AddSoundLump() 723 if (Id == 0 || (S_sfx[Id].LumpNum == -1 && S_sfx[Id].Link == -1)) in LookupPlayerSound() 835 sound_id = S_sfx[sound_id].Sounds[rand() % S_sfx[sound_id].Link]; in ResolveSound() [all …]
|
H A D | snd_allegro.cpp | 124 Samples = new SAMPLE*[GSoundManager->S_sfx.Num()]; in Init() 125 memset(Samples, 0, sizeof(SAMPLE*) * GSoundManager->S_sfx.Num()); in Init() 161 for (int i = 0; i < GSoundManager->S_sfx.Num(); i++) in Shutdown() 205 int SfxSize = GSoundManager->S_sfx[sound_id].DataSize; in LoadSample() 206 if (GSoundManager->S_sfx[sound_id].SampleBits == 16) in LoadSample() 210 SAMPLE* spl = create_sample(GSoundManager->S_sfx[sound_id].SampleBits, 0, in LoadSample() 211 GSoundManager->S_sfx[sound_id].SampleRate, SfxSize); in LoadSample() 213 if (GSoundManager->S_sfx[sound_id].SampleBits == 16) in LoadSample() 216 short* pSrc = (short*)GSoundManager->S_sfx[sound_id].Data; in LoadSample() 223 memcpy(spl->data, GSoundManager->S_sfx[sound_id].Data, SfxSize); in LoadSample()
|
H A D | snd_sdl.cpp | 176 Chunks = new Mix_Chunk*[GSoundManager->S_sfx.Num()]; in Init() 177 memset(Chunks, 0, sizeof(Mix_Chunk*) * GSoundManager->S_sfx.Num()); in Init() 235 for (int i = 0; i < GSoundManager->S_sfx.Num(); i++) in Shutdown() 289 if (SDL_BuildAudioCVT(&cvt, GSoundManager->S_sfx[sound_id].SampleBits == 8 ? in LoadSound() 290 AUDIO_U8 : AUDIO_S16SYS, 1, GSoundManager->S_sfx[sound_id].SampleRate, in LoadSound() 298 cvt.len = GSoundManager->S_sfx[sound_id].DataSize; in LoadSound() 300 memcpy(cvt.buf, GSoundManager->S_sfx[sound_id].Data, cvt.len); in LoadSound()
|
/dports/games/heretic/glheretic-1.2/gsisound/ |
H A D | sounds.c | 72 sfxinfo_t S_sfx[] = variable 83 { "-phopow", &S_sfx[sfx_hedat1], 32, -1, NULL, 0, 1 }, 100 { "-impact", &S_sfx[sfx_impsit], 20, -1, NULL, 0, 2 }, 106 { "-mumact", &S_sfx[sfx_mumsit], 20, -1, NULL, 0, 2 }, 128 { "-kgtact", &S_sfx[sfx_kgtsit], 20, -1, NULL, 0, 2 }, 158 { "-sbtsit", &S_sfx[sfx_bstsit], 32, -1, NULL, 0, 2 }, 159 { "-sbtatk", &S_sfx[sfx_bstatk], 32, -1, NULL, 0, 2 }, 192 { "-volsht", &S_sfx[sfx_bstatk], 16, -1, NULL, 0, 2 }, 193 { "-volhit", &S_sfx[sfx_lobhit], 16, -1, NULL, 0, 2 },
|
H A D | i_sound.c | 215 channels[slot] = (unsigned char *) S_sfx[sfxid].data; in addsfx() 639 S_sfx[i].lumpnum = -1; in I_InitSound() 641 if (!S_sfx[i].link) in I_InitSound() 644 S_sfx[i].data = getsfx(i, S_sfx[i].name, &lengths[i] ); in I_InitSound() 649 S_sfx[i].data = S_sfx[i].link->data; in I_InitSound() 650 lengths[i] = lengths[(S_sfx[i].link - S_sfx)/sizeof(sfxinfo_t)]; in I_InitSound()
|
/dports/games/edge/Edge-1.35-source/deh_edge/ |
H A D | sounds.cc | 135 sfxinfo_t S_sfx[NUMSFX_BEX] = variable 264 free(S_sfx[s].new_name); in Startup() 265 S_sfx[s].new_name = NULL; in Startup() 346 return S_sfx[sound_id].orig_name; in GetEdgeSfxName() 352 assert(strlen(S_sfx[sound_id].orig_name) < 16); in GetSound() 424 sfxinfo_t *sound = S_sfx + s_num; in WriteSound() 438 sfxinfo_t *link = S_sfx + sound->link; in WriteSound() 515 if (StrCaseCmp(S_sfx[i].orig_name, before) != 0) in ReplaceSound() 518 if (S_sfx[i].new_name) in ReplaceSound() 519 free(S_sfx[i].new_name); in ReplaceSound() [all …]
|
/dports/games/heretic/glheretic-1.2/sndserv/ |
H A D | sounds.c | 104 sfxinfo_t S_sfx[] = variable 115 { "-phopow", &S_sfx[sfx_hedat1], 32, NULL, -1, -1, false, -1, 0, 1 }, 132 { "-impact", &S_sfx[sfx_impsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 138 { "-mumact", &S_sfx[sfx_mumsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 160 { "-kgtact", &S_sfx[sfx_kgtsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 190 { "-sbtsit", &S_sfx[sfx_bstsit], 32, NULL, -1, -1, true, -1, 0, 2 }, 191 { "-sbtatk", &S_sfx[sfx_bstatk], 32, NULL, -1, -1, false, -1, 0, 2 }, 224 { "-volsht", &S_sfx[sfx_bstatk], 16, NULL, -1, -1, false, -1, 0, 2 }, 225 { "-volhit", &S_sfx[sfx_lobhit], 16, NULL, -1, -1, false, -1, 0, 2 },
|
H A D | soundsrv.c | 345 if (!S_sfx[i].link) in grabdata() 347 S_sfx[i].data = getsfx(S_sfx[i].name, &lengths[i]); in grabdata() 350 S_sfx[i].data = S_sfx[i].link->data; in grabdata() 351 lengths[i] = lengths[(S_sfx[i].link - S_sfx)/sizeof(sfxinfo_t)]; in grabdata() 424 channels[slot] = (unsigned char *) S_sfx[sfxid].data; in addsfx() 689 write(fd, S_sfx[sndnum].data, lengths[sndnum]); in main()
|
/dports/games/heretic/glheretic-1.2/soundclient/ |
H A D | sounds.c | 75 sfxinfo_t S_sfx[] = variable 86 { "-phopow", &S_sfx[sfx_hedat1], 32, NULL, -1, -1, false, -1, 0, 1 }, 103 { "-impact", &S_sfx[sfx_impsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 109 { "-mumact", &S_sfx[sfx_mumsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 131 { "-kgtact", &S_sfx[sfx_kgtsit], 20, NULL, -1, -1, true, -1, 0, 2 }, 161 { "-sbtsit", &S_sfx[sfx_bstsit], 32, NULL, -1, -1, true, -1, 0, 2 }, 162 { "-sbtatk", &S_sfx[sfx_bstatk], 32, NULL, -1, -1, false, -1, 0, 2 }, 195 { "-volsht", &S_sfx[sfx_bstatk], 16, NULL, -1, -1, false, -1, 0, 2 }, 196 { "-volhit", &S_sfx[sfx_lobhit], 16, NULL, -1, -1, false, -1, 0, 2 },
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/src/ |
H A D | sounds.c | 27 sfxinfo_t S_sfx[NUMSFX] = variable 855 S_sfx[i].priority = 0; in S_InitRuntimeSounds() 856 S_sfx[i].pitch = 0; in S_InitRuntimeSounds() 857 S_sfx[i].volume = -1; in S_InitRuntimeSounds() 858 S_sfx[i].data = NULL; in S_InitRuntimeSounds() 859 S_sfx[i].length = 0; in S_InitRuntimeSounds() 880 if (S_sfx[i].priority) in S_AddSoundFx() 892 S_sfx[i].priority = 60; in S_AddSoundFx() 894 S_sfx[i].volume = -1; in S_AddSoundFx() 900 S_sfx[i].data = NULL; in S_AddSoundFx() [all …]
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/macos/ |
H A D | i_sound.c | 114 if (S_sfx[sfxid].flags & SFX_single) in addsfx() 123 if( S_sfx[sfxid].flags & SFX_id_fin ) in addsfx() 152 channels[slot] = (unsigned char *) S_sfx[sfxid].data; in addsfx() 198 theSndBuffer.samplePtr = (Ptr) S_sfx[sfxid].data; in addsfx() 199 theSndBuffer.numFrames = S_sfx[sfxid].length; in addsfx() 395 if (S_sfx[i].name) { in I_StartupSound() 396 if (!S_sfx[i].link) in I_StartupSound() 399 S_sfx[i].data = getsfx( &S_sfx[i] ); in I_StartupSound() 404 S_sfx[i].data = S_sfx[i].link->data; in I_StartupSound() 405 S_sfx[i].length = S_sfx[i].link->length; in I_StartupSound()
|
/dports/games/odamex/odamex-src-0.7.0/client/src/ |
H A D | s_sound.cpp | 1136 S_sfx[i].index = ~0; in S_HashSounds() 1141 S_sfx[i].next = S_sfx[j].index; in S_HashSounds() 1142 S_sfx[j].index = i; in S_HashSounds() 1154 i = S_sfx[i].next; in S_FindSound() 1175 S_sfx = (sfxinfo_struct *)Realloc (S_sfx, maxsfx * sizeof(*S_sfx)); in S_AddSoundLump() 1180 S_sfx[numsfx].data = NULL; in S_AddSoundLump() 1181 S_sfx[numsfx].link = NULL; in S_AddSoundLump() 1188 M_Free(S_sfx); in S_ClearSoundLumps() 1439 if (S_sfx[i].lumpnum != -1) in BEGIN_COMMAND() 1454 if (S_sfx[i].link) in BEGIN_COMMAND() [all …]
|
/dports/games/libretro-prboom/libretro-prboom-cc80175/libretro/ |
H A D | libretro_sound.c | 290 if (!S_sfx[id].data) in I_StartSound() 320 channels[slot].snd_start_ptr = (uint8_t*)S_sfx[id].data; in I_StartSound() 515 if (!S_sfx[i].link) in I_InitSound() 518 S_sfx[i].data = I_SndLoadSample( S_sfx[i].name, &lengths[i] ); in I_InitSound() 523 S_sfx[i].data = S_sfx[i].link->data; in I_InitSound() 524 lengths[i] = lengths[(S_sfx[i].link - S_sfx)/sizeof(sfxinfo_t)]; in I_InitSound()
|
/dports/games/prboom/prboom-2.5.0/src/ |
H A D | sounds.c | 124 sfxinfo_t S_sfx[] = { variable 213 { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0 },
|
/dports/games/prboom-plus/prboom-plus-2.5.1.3/src/ |
H A D | sounds.c | 127 sfxinfo_t S_sfx[] = { variable 216 { "chgun", false, 64, &S_sfx[sfx_pistol], 150, 0, 0 },
|
/dports/games/doomlegacy/doomlegacy_1.48.8_source/src/djgppdos/ |
H A D | I_sound.c | 206 voice=play_sample(S_sfx[id].data,vol,sep+128,(pitch*1000)/128,0); in I_StartSound() 220 if(voice_check(voice)==S_sfx[handle>>VOICESSHIFT].data) in I_StopSound() 230 if(voice_check(handle & (VIRTUAL_VOICES-1))==S_sfx[handle>>VOICESSHIFT].data) in I_SoundIsPlaying() 290 if(voice_check(voice)==S_sfx[numsfx].data) in I_UpdateSoundParams() 299 , S_sfx[numsfx].data)); in I_UpdateSoundParams()
|