mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-01 05:50:52 +00:00
Move declarations to top of file
This commit is contained in:
parent
12902f7454
commit
5c58c304b9
1 changed files with 13 additions and 17 deletions
|
@ -36,6 +36,19 @@
|
|||
equivalent to the matching ID list in memory regardless of LE/BE machine
|
||||
*/
|
||||
|
||||
static const unsigned short badgen[] = {
|
||||
Gen_Unused1, Gen_Unused2, Gen_Unused3, Gen_Unused4,
|
||||
Gen_Reserved1, Gen_Reserved2, Gen_Reserved3, 0
|
||||
};
|
||||
|
||||
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,
|
||||
Gen_OverrideRootKey, 0
|
||||
};
|
||||
|
||||
#define READCHUNK(var,fd, fcbs) do { \
|
||||
if (fcbs->fread(var, 8, fd) == FLUID_FAILED) \
|
||||
return(FAIL); \
|
||||
|
@ -1449,23 +1462,6 @@ next_sample:
|
|||
return (OK);
|
||||
}
|
||||
|
||||
/*=================================sfont.c========================
|
||||
Smurf SoundFont Editor
|
||||
================================================================*/
|
||||
|
||||
static const unsigned short badgen[] = {
|
||||
Gen_Unused1, Gen_Unused2, Gen_Unused3, Gen_Unused4,
|
||||
Gen_Reserved1, Gen_Reserved2, Gen_Reserved3, 0
|
||||
};
|
||||
|
||||
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,
|
||||
Gen_OverrideRootKey, 0
|
||||
};
|
||||
|
||||
/* close SoundFont file and delete a SoundFont structure */
|
||||
void
|
||||
sfont_close (SFData * sf, const fluid_file_callbacks_t* fcbs)
|
||||
|
|
Loading…
Reference in a new issue