Examples of SoundPlayer


Examples of aspect.audio.SoundPlayer

        try {
            WaveData data = WaveData.create(new BufferedInputStream(new FileInputStream("sound/test.wav")));
            if (data == null) {
                throw new LWJGLException("data == null");
            }
            sound = new SoundPlayer(new AudioClip(data));
        } catch (LWJGLException | FileNotFoundException ex) {
            Logger.getLogger(SoundDemo.class.getName()).log(Level.SEVERE, null, ex);
        }
        addKeyListener(this);
    }
View Full Code Here

Examples of com.mojang.minecraft.sound.SoundPlayer

   }

   public final void shutdown() {
      try {
         if(this.soundPlayer != null) {
            SoundPlayer var1 = this.soundPlayer;
            this.soundPlayer.running = false;
         }

         if(this.resourceThread != null) {
            ResourceDownloadThread var4 = this.resourceThread;
View Full Code Here

Examples of com.mojang.minecraft.sound.SoundPlayer

               var53.printStackTrace();
            }
         }

         try {
            var1.soundPlayer = new SoundPlayer(var1.settings);
            SoundPlayer var4 = var1.soundPlayer;

            try {
               AudioFormat var67 = new AudioFormat(44100.0F, 16, 2, true, true);
               var4.dataLine = AudioSystem.getSourceDataLine(var67);
               var4.dataLine.open(var67, 4410);
View Full Code Here

Examples of com.mojang.minecraft.sound.SoundPlayer

      }
   }

   private void tick() {
      if(this.soundPlayer != null) {
         SoundPlayer var1 = this.soundPlayer;
         SoundManager var2 = this.sound;
         if(System.currentTimeMillis() > var2.lastMusic && var2.playMusic(var1, "calm")) {
            var2.lastMusic = System.currentTimeMillis() + (long)var2.random.nextInt(900000) + 300000L;
         }
      }
View Full Code Here

Examples of com.tinygo.gam.SoundPlayer

        Timer timer = new Timer();
        timeSystem = new TimeSystem(timer);

        gobanCanvas = new GobanCanvas(display, new TileT2DPainter());

        SoundPlayer snd = new SoundPlayer(display);
        menuScreen = new MenuScreen(this, display, pdb);
        statusScreen = new StatusScreen(display, timer, timeSystem);

        controller = new Controller(this, display, snd,
                pdb, timeSystem,
View Full Code Here

Examples of com.tinygo.gam.SoundPlayer

        Timer timer = new Timer();
        timeSystem = new TimeSystem(timer);

        gobanCanvas = new GobanCanvas(display, new TileT2DPainter());

        SoundPlayer snd = new SoundPlayer(display);
        menuScreen = new MenuScreen(this, display, pdb);
        statusScreen = new StatusScreen(display, timer, timeSystem);

        controller = new Controller(this, display, snd,
                pdb, timeSystem,
View Full Code Here

Examples of fr.valhalla.mailcheck.utils.SoundPlayer

    }

    private void initSound() {
        soundCombo.addItem("Aucun");
        try {
            SoundPlayer sp = new SoundPlayer();
            Iterator i = sp.SOUNDS.keySet().iterator();
            while(i.hasNext()) {
                soundCombo.addItem(i.next());
            }
        } catch(Exception e) {e.printStackTrace();}
View Full Code Here

Examples of fr.valhalla.mailcheck.utils.SoundPlayer

    private String getSound() {
        if(soundCombo.getSelectedIndex() == 0)
            return "NONE";

        try {
            SoundPlayer sp = new SoundPlayer();
            return sp.SOUNDS.get(soundCombo.getSelectedItem().toString());
        } catch(Exception e) {e.printStackTrace();}

        return "NONE";
    }
View Full Code Here

Examples of fr.valhalla.mailcheck.utils.SoundPlayer

        // Aucun son : retour
        if(soundCombo.getSelectedIndex() == 0)
            return;

        try {
            SoundPlayer sp = new SoundPlayer();
            String selectedSound = soundCombo.getSelectedItem().toString();
            String soundFile = sp.SOUNDS.get(selectedSound);
            sp = new SoundPlayer(soundFile);
            sp.play();
        } catch(Exception e) {e.printStackTrace();}
       
    }//GEN-LAST:event_playSoundLabelMouseClicked
View Full Code Here

Examples of fr.valhalla.mailcheck.utils.SoundPlayer

                // update list
                updateList(difference, imap.countAllMessages());
                // Play new mail sound
                if(account.getSound() == null ? "NONE" != null : !account.getSound().equals("NONE"))
                    try {
                        SoundPlayer sound = new SoundPlayer(account.getSound());
                        sound.play();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                // Show notification !
                if(account.hasNotifications() && kernel.withGUI()) {
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.