/[svn]/jsampler/trunk/src/org/jsampler/CC.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/CC.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1718 by iliev, Wed Feb 20 15:20:34 2008 UTC revision 1719 by iliev, Wed Mar 19 10:07:36 2008 UTC
# Line 136  public class CC { Line 136  public class CC {
136          scheduleTask(Task t) {          scheduleTask(Task t) {
137                  while(getTaskQueue().removeTask(t)) { }                  while(getTaskQueue().removeTask(t)) { }
138                                    
                 if(getTaskQueue().getPendingTaskCount() == 0) {  
                         if(t.equals(getTaskQueue().getRunningTask())) return;  
                 }  
                   
139                  getTaskQueue().add(t);                  getTaskQueue().add(t);
140          }          }
141                    
# Line 916  public class CC { Line 912  public class CC {
912                  exportInstrMapsToLscpScript(lscpClient);                  exportInstrMapsToLscpScript(lscpClient);
913                  sb.append(out.toString());                  sb.append(out.toString());
914                  out.reset();                  out.reset();
915                    sb.append("\r\n");
916                                    
917                  SamplerChannelModel[] channels = getSamplerModel().getChannels();                  SamplerChannelModel[] channels = getSamplerModel().getChannels();
918                                    
# Line 1205  public class CC { Line 1202  public class CC {
1202                  /** Invoked when the number of MIDI instruments in a MIDI instrument map is changed. */                  /** Invoked when the number of MIDI instruments in a MIDI instrument map is changed. */
1203                  public void                  public void
1204                  instrumentCountChanged(MidiInstrumentCountEvent e) {                  instrumentCountChanged(MidiInstrumentCountEvent e) {
1205                          getTaskQueue().add(new Midi.UpdateInstruments(e.getMapId()));                          scheduleTask(new Midi.UpdateInstruments(e.getMapId()));
1206                  }                  }
1207                                    
1208                  /** Invoked when a MIDI instrument in a MIDI instrument map is changed. */                  /** Invoked when a MIDI instrument in a MIDI instrument map is changed. */

Legend:
Removed from v.1718  
changed lines
  Added in v.1719

  ViewVC Help
Powered by ViewVC