Remove unused defines and declarations

This commit is contained in:
Marcus Weseloh 2018-04-04 11:03:47 +02:00
parent 167048f5a3
commit 12902f7454
2 changed files with 2 additions and 33 deletions

View file

@ -1453,15 +1453,6 @@ next_sample:
Smurf SoundFont Editor
================================================================*/
/* optimum chunk area sizes (could be more optimum) */
#define PRESET_CHUNK_OPTIMUM_AREA 256
#define INST_CHUNK_OPTIMUM_AREA 256
#define SAMPLE_CHUNK_OPTIMUM_AREA 256
#define ZONE_CHUNK_OPTIMUM_AREA 256
#define MOD_CHUNK_OPTIMUM_AREA 256
#define GEN_CHUNK_OPTIMUM_AREA 256
static const unsigned short badgen[] = {
Gen_Unused1, Gen_Unused2, Gen_Unused3, Gen_Unused4,
Gen_Reserved1, Gen_Reserved2, Gen_Reserved3, 0

View file

@ -185,25 +185,7 @@ Gen_Type;
#define Gen_Count Gen_Dummy /* count of generators */
#define GenArrSize sizeof(SFGenAmount)*Gen_Count /* gen array size */
/* generator unit type */
typedef enum
{
None, /* No unit type */
Unit_Smpls, /* in samples */
Unit_32kSmpls, /* in 32k samples */
Unit_Cent, /* in cents (1/100th of a semitone) */
Unit_HzCent, /* in Hz Cents */
Unit_TCent, /* in Time Cents */
Unit_cB, /* in centibels (1/100th of a decibel) */
Unit_Percent, /* in percentage */
Unit_Semitone, /* in semitones */
Unit_Range /* a range of values */
}
Gen_Unit;
/* functions */
void sfont_init_chunks (void);
void sfont_close (SFData * sf, const fluid_file_callbacks_t* fcbs);
void sfont_free_zone (SFZone * zone);
int sfont_preset_compare_func (void* a, void* b);
@ -299,14 +281,10 @@ SFData *sfload_file (const char * fname, const fluid_file_callbacks_t* fcbs);
#define OK 1
enum
{ ErrWarn, ErrFatal, ErrStatus, ErrCorr, ErrEof, ErrMem, Errno,
ErrRead, ErrWrite
{
ErrCorr,
};
#define ErrMax ErrWrite
#define ErrnoStart Errno
#define ErrnoEnd ErrWrite
int gerr (int ev, char * fmt, ...);
#endif /* _FLUID_SF2_H */