Exemplo n.º 1
0
  private void jButtonPlayDescriptionActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:

    if (new File(
            DVX_Constants.MOVIE_PATH
                + // is there a .wav file with the name
                jTextFieldMovieSBNNumber.getText()
                + DVX_Constants.MOVIE_MENUS_PATH
                + DVX_Constants.MOVIE_NAME_WAV)
        .exists()) // recorded version...
    {
      DVX_PlaySound.playWav(
          DVX_Constants.MOVIE_PATH
              + jTextFieldMovieSBNNumber.getText()
              + DVX_Constants.MOVIE_MENUS_PATH
              + DVX_Constants.MOVIE_NAME_WAV,
          true);
    } else {
      dvx_player.getDvxSpeak().speak("No movie description audio file found.");
    }
  }