mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 15:01:40 +00:00
idlist[], badgen[] and badpgen[] made static const
This commit is contained in:
parent
4f8ab20355
commit
95ea3c0fba
2 changed files with 6 additions and 12 deletions
|
@ -2132,7 +2132,7 @@ static int fixup_pgen (SFData * sf);
|
|||
static int fixup_igen (SFData * sf);
|
||||
static int fixup_sample (SFData * sf);
|
||||
|
||||
char idlist[] = {
|
||||
static const char idlist[] = {
|
||||
"RIFFLISTsfbkINFOsdtapdtaifilisngINAMiromiverICRDIENGIPRD"
|
||||
"ICOPICMTISFTsnamsmplphdrpbagpmodpgeninstibagimodigenshdr"
|
||||
};
|
||||
|
@ -2421,7 +2421,7 @@ pdtahelper (unsigned int expid, unsigned int reclen, SFChunk * chunk,
|
|||
int * size, FILE * fd)
|
||||
{
|
||||
unsigned int id;
|
||||
char *expstr;
|
||||
const char *expstr;
|
||||
|
||||
expstr = CHNKIDSTR (expid); /* in case we need it */
|
||||
|
||||
|
@ -3429,11 +3429,13 @@ fixup_sample (SFData * sf)
|
|||
#define MOD_CHUNK_OPTIMUM_AREA 256
|
||||
#define GEN_CHUNK_OPTIMUM_AREA 256
|
||||
|
||||
unsigned short badgen[] = { Gen_Unused1, Gen_Unused2, Gen_Unused3, Gen_Unused4,
|
||||
static const unsigned short badgen[] = {
|
||||
Gen_Unused1, Gen_Unused2, Gen_Unused3, Gen_Unused4,
|
||||
Gen_Reserved1, Gen_Reserved2, Gen_Reserved3, 0
|
||||
};
|
||||
|
||||
unsigned short badpgen[] = { Gen_StartAddrOfs, Gen_EndAddrOfs, Gen_StartLoopAddrOfs,
|
||||
static const unsigned short badpgen[] = {
|
||||
Gen_StartAddrOfs, Gen_EndAddrOfs, Gen_StartLoopAddrOfs,
|
||||
Gen_EndLoopAddrOfs, Gen_StartAddrCoarseOfs, Gen_EndAddrCoarseOfs,
|
||||
Gen_StartLoopAddrCoarseOfs, Gen_Keynum, Gen_Velocity,
|
||||
Gen_EndLoopAddrCoarseOfs, Gen_SampleModes, Gen_ExclusiveClass,
|
||||
|
|
|
@ -212,11 +212,6 @@ typedef enum
|
|||
}
|
||||
Gen_Unit;
|
||||
|
||||
/* global data */
|
||||
|
||||
extern unsigned short badgen[]; /* list of bad generators */
|
||||
extern unsigned short badpgen[]; /* list of bad preset generators */
|
||||
|
||||
/* functions */
|
||||
void sfont_init_chunks (void);
|
||||
|
||||
|
@ -295,9 +290,6 @@ typedef struct _SFShdr
|
|||
}
|
||||
SFShdr;
|
||||
|
||||
/* data */
|
||||
extern char idlist[];
|
||||
|
||||
/* functions */
|
||||
SFData *sfload_file (const char * fname);
|
||||
|
||||
|
|
Loading…
Reference in a new issue