Example #1
0
 void fluid_channel_init()
 {
     enabled = true;
     prognum = 0;
     banknum = channum == 9 ? MidiPlayerGlobal.ImSFCurrent.DrumKitBankNumber : MidiPlayerGlobal.ImSFCurrent.DefaultBankNumber;
     preset  = synth.fluid_synth_find_preset(banknum, prognum);
 }
 void fluid_channel_init()
 {
     prognum = 0;
     if (MidiPlayerGlobal.ImSFCurrent != null)
     {
         banknum = channum == 9 ? MidiPlayerGlobal.ImSFCurrent.DrumKitBankNumber : MidiPlayerGlobal.ImSFCurrent.DefaultBankNumber;
         preset  = synth.fluid_synth_find_preset(banknum, prognum);
     }
 }