Examples of MP3Player


Examples of eas.miscellaneous.useful.MP3Player

        while (lowering) {
            lowering = this.lowerAgent(agentID, newAgent);
        }
       
        if (this.getFirstFullLine() < 0) {
            new Thread(new MP3Player(new File("./sharedDirectory/Polytris/lower"))).start();
        }
    }
View Full Code Here

Examples of eas.miscellaneous.useful.MP3Player

                }
            }
        }
       
        if (bricksRemoved > 0) {
            new Thread(new MP3Player(new File("./sharedDirectory/Polytris/dynamite"))).start();
        } else {
            new Thread(new MP3Player(new File("./sharedDirectory/Polytris/dynamiteBurnout"))).start();
        }

        return bricksRemoved;
    }
View Full Code Here

Examples of eas.miscellaneous.useful.MP3Player

            File f = new File("./sharedDirectory/Polytris/line" + linesTemp);
            while (!f.exists()) {
                linesTemp--;
                f = new File("./sharedDirectory/Polytris/line" + linesTemp);
            }
            new Thread(new MP3Player(new File("./sharedDirectory/Polytris/line" + linesTemp))).start();
//            System.gc();
        }
    }
View Full Code Here

Examples of eas.miscellaneous.useful.MP3Player

            this.lowerBomb();
        }
       
        if (this.veryHigh) {
            if (this.veryHighPlayer == null) {
                this.veryHighPlayer = new MP3Player(new File("sharedDirectory/Polytris/warning"));
                this.veryHighPlayer.setRepeat(true);
                new Thread(this.veryHighPlayer).start();
            }
        } else {
            if (this.veryHighPlayer != null) {
                this.veryHighPlayer.requestStop();
                this.veryHighPlayer = null;
            }
        }
       
        // Faster sound.
        if (this.clock.isAccelerating(simTime)) {
            new Thread(new MP3Player(new File("./sharedDirectory/Polytris/faster"))).start();
            this.addScore += 50;
            this.score += this.addScore;
            this.setBombsNumber(this.bombs + 1, 0);
        }
       
View Full Code Here

Examples of eas.miscellaneous.useful.MP3Player

                ostToPlay = new File("./sharedDirectory/Polytris/ost2");
            } else {
                ostToPlay = new File("./sharedDirectory/Polytris/ost1");
            }
           
            mp3 = new MP3Player(ostToPlay);
            mp3.setRepeat(true);
            new Thread(mp3).start();
           
            try {
                StaticWindow window;
View Full Code Here

Examples of eas.miscellaneous.useful.MP3Player

   
    @Override
    public void runAfterSimulation(PolytrisEnvironment umg, ParCollection params) {
        super.runAfterSimulation(umg, params);
        mp3.requestStop();
        new Thread(new MP3Player(new File("./sharedDirectory/Polytris/gameOver"))).start();
        try {Thread.sleep(5000);} catch (InterruptedException e) {}

        String username = "";
       
        if (new File("./sharedDirectory/Polytris/username.txt").exists()) {
View Full Code Here

Examples of jaco.mp3.player.MP3Player

   *
   */
  static private void playMp3() {
    try {
      musicType = "mp3";
      mp3 = new MP3Player(ResourceLoader.getResource(musicfile));
      mp3.setRepeat(true);
      mp3.play();
     
    } catch (Exception e) {
      System.out.println("Can not play \"" + musicfile + "\".");
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.