Diff for /np2/sound/vermouth/midimod.c between versions 1.11 and 1.15

version 1.11, 2006/12/16 22:23:24 version 1.15, 2011/02/04 01:59:32
Line 380  static BRESULT VERMOUTHCL cfgfile_load(M Line 380  static BRESULT VERMOUTHCL cfgfile_load(M
                 (midimod_getfile(mod, filename, buf, NELEMENTS(buf)) != SUCCESS)) {                  (midimod_getfile(mod, filename, buf, NELEMENTS(buf)) != SUCCESS)) {
                 goto cfl_err;                  goto cfl_err;
         }          }
 //      TRACEOUT(("open: %s", buf));  // TRACEOUT(("open: %s", buf));
         tfh = textfile_open(buf, 0x1000);          tfh = textfile_open(buf, 0x1000);
         if (tfh == NULL) {          if (tfh == NULL) {
                 goto cfl_err;                  goto cfl_err;
Line 579  VEXTERN void VEXPORT midimod_loadall(MID Line 579  VEXTERN void VEXPORT midimod_loadall(MID
 }  }
   
   
 VEXTERN void VEXPORT midimod_loadallex(MIDIMOD mod, FNMIDIOUTLAEXCB cb,  VEXTERN int VEXPORT midimod_loadallex(MIDIMOD mod, FNMIDIOUTLAEXCB cb,
                                                                                                                         void *userdata) {                                                                                                                          void *userdata) {
   
         MIDIOUTLAEXPARAM param;          int                                     result;
         UINT    b;          MIDIOUTLAEXPARAM        param;
           UINT                            b;
   
           result = MIDIOUT_SUCCESS;
         if (mod) {          if (mod) {
                 ZeroMemory(&param, sizeof(param));                  ZeroMemory(&param, sizeof(param));
                 param.userdata = userdata;                  param.userdata = userdata;
Line 593  VEXTERN void VEXPORT midimod_loadallex(M Line 595  VEXTERN void VEXPORT midimod_loadallex(M
                 }                  }
                 for (b=0; b<(MIDI_BANKS*2); b++) {                  for (b=0; b<(MIDI_BANKS*2); b++) {
                         param.bank = b;                          param.bank = b;
                         inst_bankloadex(mod, b, cb, &param);                          result = inst_bankloadex(mod, b, cb, &param);
                           if (result != MIDIOUT_SUCCESS)
                           {
                                   break;
                           }
                 }                  }
         }          }
           return result;
 }  }
   

Removed from v.1.11  
changed lines
  Added in v.1.15


RetroPC.NET-CVS <cvs@retropc.net>