Changeset 518 for GPL/trunk/lib32/fminstrload.c
- Timestamp:
- Jul 20, 2010, 5:46:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/lib32/fminstrload.c
r305 r518 42 42 #include "instrfm.h" 43 43 44 #define assert(a) 44 #define assert(a) 45 45 46 46 typedef struct sbi_header … … 101 101 { 102 102 midihandle *pHandle = (midihandle *)streamid; 103 103 104 104 if(pHandle == NULL || pHandle->magic != MAGIC_MIDI_ALSA32) { 105 105 DebugInt3(); … … 119 119 //load drums 120 120 load_sb(pHandle, drumsopl3, sizeof(drumsopl3), 128); 121 121 122 122 return OSSERR_SUCCESS; 123 123 } … … 226 226 * Parse standard .sb or .o3 file 227 227 */ 228 static void load_sb (midihandle *pHandle, char *pFile, int filesize, int bank) 228 static void load_sb (midihandle *pHandle, char *pFile, int filesize, int bank) 229 229 { 230 230 int len, i, offset = 0; … … 245 245 if (!strncmp (sbi_instr.header.key, "SBI\032", 4) || !strncmp (sbi_instr.header.key, "2OP\032", 4)) { 246 246 fm_instr_type = FM_PATCH_OPL2; 247 } 248 else 247 } 248 else 249 249 if (!strncmp (sbi_instr.header.key, "4OP\032", 4)) { 250 250 fm_instr_type = FM_PATCH_OPL3; 251 } 251 } 252 252 else { 253 253 fm_instr_type = 0; … … 374 374 memset(*ptr, 0, sizeof(snd_instr_header_t) + len); 375 375 (*ptr)->len = len; 376 376 377 377 return 0; 378 378 }
Note:
See TracChangeset
for help on using the changeset viewer.