From b61abdd9075ffc515458d3f74b6b93f30b8aada4 Mon Sep 17 00:00:00 2001 From: Marcus Weseloh Date: Sat, 27 Mar 2021 15:03:29 +0100 Subject: [PATCH] Remove unused structs in sffile code --- src/sfloader/fluid_sffile.h | 39 ------------------------------------- 1 file changed, 39 deletions(-) diff --git a/src/sfloader/fluid_sffile.h b/src/sfloader/fluid_sffile.h index 0f03ac08..b2f0d4c6 100644 --- a/src/sfloader/fluid_sffile.h +++ b/src/sfloader/fluid_sffile.h @@ -45,10 +45,6 @@ typedef struct _SFInst SFInst; typedef struct _SFPreset SFPreset; typedef struct _SFData SFData; typedef struct _SFChunk SFChunk; -typedef struct _SFPhdr SFPhdr; -typedef struct _SFBag SFBag; -typedef struct _SFIhdr SFIhdr; -typedef struct _SFShdr SFShdr; struct _SFVersion @@ -180,41 +176,6 @@ struct _SFChunk unsigned int size; /* size of the following chunk */ }; -struct _SFPhdr -{ - unsigned char name[20]; /* preset name */ - unsigned short preset; /* preset number */ - unsigned short bank; /* bank number */ - unsigned short pbagndx; /* index into preset bag */ -}; - -struct _SFBag -{ - unsigned short genndx; /* index into generator list */ - unsigned short modndx; /* index into modulator list */ -}; - -struct _SFIhdr -{ - char name[20]; /* Name of instrument */ - unsigned short ibagndx; /* Instrument bag index */ -}; - -struct _SFShdr -{ - /* Sample header loading struct */ - char name[20]; /* Sample name */ - unsigned int start; /* Offset to start of sample */ - unsigned int end; /* Offset to end of sample */ - unsigned int loopstart; /* Offset to start of loop */ - unsigned int loopend; /* Offset to end of loop */ - unsigned int samplerate; /* Sample rate recorded at */ - unsigned char origpitch; /* root midi key number */ - signed char pitchadj; /* pitch correction in cents */ - unsigned short samplelink; /* Not used */ - unsigned short sampletype; /* 1 mono,2 right,4 left,linked 8,0x8000=ROM */ -}; - /* Public functions */ SFData *fluid_sffile_open(const char *fname, const fluid_file_callbacks_t *fcbs); void fluid_sffile_close(SFData *sf);