コード例 #1
0
 public void close() throws TGPluginException {
   try {
     this.provider.closeAll();
   } catch (MidiPlayerException e) {
     throw new TGPluginException(e.getMessage(), e);
   }
 }
コード例 #2
0
ファイル: MidiReceiverImpl.java プロジェクト: sebhw/TuxGuitar
 public void send(MidiMessage message, long timeStamp) {
   try {
     if (this.sequencer.isRunning()) {
       parseMessage(message.getMessage());
     }
   } catch (MidiPlayerException e) {
     e.printStackTrace();
   }
 }
コード例 #3
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);
     }
   }
 }