-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.Add file extension check in CRegexResourceReplaceEntry::GetReplacedFileName.
- Loading branch information
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <com_model.h> | ||
|
||
#define MAX_QPATH 64 // max length of a quake game pathname | ||
|
||
typedef struct sfx_s | ||
{ | ||
char name[MAX_QPATH]; | ||
cache_user_t cache; | ||
int servercount; | ||
}sfx_t; | ||
|
||
typedef struct sfxcache_s | ||
{ | ||
int length; | ||
int loopstart; | ||
int speed; | ||
int width; | ||
int stereo; | ||
byte data[1]; // variable sized | ||
} sfxcache_t; | ||
|
||
typedef struct | ||
{ | ||
sfx_t* sfx; // sfx number | ||
int leftvol; // 0-255 volume | ||
int rightvol; // 0-255 volume | ||
int end; // end time in global paintsamples | ||
int pos; // sample position in sfx | ||
int looping; // where to loop, -1 = no looping | ||
int entnum; // to allow overriding a specific sound | ||
int entchannel; // | ||
vec3_t origin; // origin of sound effect | ||
vec_t dist_mult; // distance multiplier (attenuation/clipK) | ||
int master_vol; // 0-255 master volume | ||
int isentence; | ||
int iword; | ||
int pitch; // real-time pitch after any modulation or shift by dynamic data | ||
} channel_t; |