コード例 #1
0
 public void close() throws TGPluginException {
   try {
     this.provider.closeAll();
   } catch (MidiPlayerException e) {
     throw new TGPluginException(e.getMessage(), e);
   }
 }
コード例 #2
0
 protected void removePlugin() throws TGPluginException {
   if (this.loaded) {
     try {
       TuxGuitar.instance().getPlayer().removeSequencerProvider(this.provider);
       this.loaded = false;
     } catch (MidiPlayerException e) {
       throw new TGPluginException(e.getMessage(), e);
     }
   }
 }