Examples of play()


Examples of org.gstreamer.elements.PlayBin2.play()

               
                // Add the video component as the playbin video output
                playbin.setVideoSink(videoComponent.getElement());
               
                // Start the pipeline playing
                playbin.play();
               
                //
                // Initialise the top-level frame and add the video component
                //
                JFrame frame = new JFrame("VideoPlayer");
View Full Code Here

Examples of org.gstreamer.elements.PlayBin2.play()

                }
            }
        });
       
        // Start the pipeline playing
        playbin.play();
        Gst.main();
        // Clean up (gstreamer requires elements to be in State.NULL before disposal)
        playbin.stop();
        Gst.deinit();
    }
View Full Code Here

Examples of org.jfugue.Player.play()

        // Create a player, and play the music!
        try {
            Pattern pattern = Pattern.loadPattern(new File(inFilename));
            Player player = new Player();
            player.saveMidi(pattern, new File(outFilename));
            player.play(pattern);
            player.close();
        } catch (IOException e)
        {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.jfugue.Player.play()

    List<String> lines = Files.readAllLines(FileSystems.getDefault().getPath(inFilename),
        StandardCharsets.UTF_8);
    StringBuilder inBuilder = new StringBuilder();
    Player player = new Player();
    player.play("T" + (int) tempo + " I[" + instrument + "] ");
    String paraSoundString = "";
    String para = "";
    int lineCount = 0;
    for (String line : lines) {
      lineCount++;
View Full Code Here

Examples of org.jfugue.Player.play()

      if (follow) {
        paraSoundString += processString(theLine);
        para += theLine;
        if (theLine.length() < 2) {
          System.out.println(para);
          player.play("T" + (int) tempo + " " + paraSoundString);
          paraSoundString = "";
          para = "";
        }
      }
    }
View Full Code Here

Examples of org.jfugue.Player.play()

      String ss = "T" + (int) tempo + " I[" + instrument + "] " + processString(input);
      System.out.println(input);
      player = new Player();
      File file = new File(outFilename);
      player.saveMidi(ss, file);
      player.play(ss);
    }
  }

  /**
   * Turn the input string into a sound string that can be played by jFugue
View Full Code Here

Examples of org.mobicents.examples.media.Announcement.play()

        try {
            Announcement announcement = (Announcement) childRelation.create();
            sbbContext.getActivities()[0].attach(announcement);
            List sequence = new ArrayList();
            sequence.add(WELCOME_MSG);
            announcement.play(endpointName, sequence, false);
        } catch (CreateException e) {
            logger.error("Unexpected error, Caused by", e);
            MsConnection connection = (MsConnection)
                    sbbContext.getActivities()[0].getActivity();
            connection.release();
View Full Code Here

Examples of org.newdawn.slick.Sound.play()

  protected void added(Entity e) {
    SoundFile soundFile = soundMapper.get(e);

    try {
      Sound sound = new Sound(soundFile.getSoundFile());
      sound.play(1, 0.3f);
    } catch (SlickException e1) {
      e1.printStackTrace();
    }
  }
View Full Code Here

Examples of org.open2jam.sound.Sound.play()

 
  Sound sound = sounds.get(soundSample.sample_id);
        if(sound == null)return null;
       
        try {
            return sound.play(soundSample.isBGM() ? SoundChannel.BGM : SoundChannel.KEY,
                    1.0f, soundSample.pan);
        } catch (SoundSystemException ex) {
            java.util.logging.Logger.getLogger(Render.class.getName()).log(Level.SEVERE, "{0}", ex);
            return null;
        }
View Full Code Here

Examples of org.openstreetmap.josm.gui.layer.markerlayer.AudioMarker.play()

                    AudioPlayer.pause();
            } else {
                // play the last-played marker again, if there is one
                AudioMarker lastPlayed = AudioMarker.recentlyPlayedMarker();
                if (lastPlayed != null) {
                    lastPlayed.play();
                } else {
                    // If no marker was played recently, play the first one
                    MarkerLayer.playAudio();
                }
            }
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.