Package com.svanloon.common.music

Examples of com.svanloon.common.music.WavePlayer.play()


      bs.repaint();
      if(isFirst && sounds != null) {
        isFirst = false;
        WavePlayer wavePlayer = new WavePlayer();
        try {
          wavePlayer.play(sounds[(int)(Math.random()*sounds.length)]);
        } catch (UnsupportedAudioFileException e1) {
          e1.printStackTrace();
        } catch (IOException e1) {
          e1.printStackTrace();
        } catch (LineUnavailableException e1) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.