Exemple #1
0
 public void actionPerformed(ActionEvent actionEvent)
 {
     AudioTool.getFilename("Open...", 0);
     if (AudioTool.filename == null || String.instancehelper_isEmpty(AudioTool.filename))
     {
         return;
     }
     try
     {
         AudioTool.getAudioFromFile(AudioTool.filename);
     }
     catch (System.Exception ex)
     {
         Throwable.instancehelper_printStackTrace(ex);
     }
 }
Exemple #2
0
 public void actionPerformed(ActionEvent actionEvent)
 {
     AudioTool.getFilename("Save As...", 1);
     if (AudioTool.filename == null || String.instancehelper_isEmpty(AudioTool.filename))
     {
         return;
     }
     try
     {
         Utils.writeRawFile(AudioTool.audio, AudioTool.filename);
         AudioTool.access_000().setEnabled(false);
     }
     catch (IOException ex)
     {
         Throwable.instancehelper_printStackTrace(ex);
     }
 }