Examples of Sound


Examples of bs.sound.Sound

       
        System.out.println("Max simultanuous:" + SoundManager.getMaxSimultaneousSounds(playbackFormat));

        SoundManager soundManager = new SoundManager(playbackFormat);
        InputStream is = Demo.class.getResourceAsStream("/BEAT1.WAV");
        Sound sound = soundManager.getSound(is);

        soundManager.play(sound);
    }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

    this.room.addMessageListener(new XmppMessageListener()
    {
      public void onMessageReceived(XmppMessage message)
      {
        SoundController soundController = new SoundController();
        Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
            "sound/im.wav");
        sound.play();
       
        addMessage(message.getFromID().getResource(), message.getBody(),false);
       
        RoomChatWindow win = RoomChatWindow.get(jid);
        if(!win.isVisible())
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

       input.focus();
       return;
     }

     SoundController soundController = new SoundController();
     Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
         "sound/im_send.wav");
     sound.play();
    
     XmppVCard selfv = JabberApp.instance().getSelfVCard();
     String nick = XmppID.parseId(JabberApp.instance().getSession().getUser().getID()).toStringNoResource();
     if(selfv!=null)
     {
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

       input.focus();
       return;
     }

     SoundController soundController = new SoundController();
     Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
         "sound/im_send.wav");
     sound.play();
    
     XmppVCard selfv = JabberApp.instance().getSelfVCard();
     String nick = XmppID.parseId(JabberApp.instance().getSession().getUser().getID()).toStringNoResource();
     if(selfv!=null)
     {
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

        if(!message.getType().equals("chat"))
          return;
        ChatWindow window = ChatWindow.openChat(message.getFromID());
       
        SoundController soundController = new SoundController();
        Sound sound = soundController.createSound(Sound.MIME_TYPE_AUDIO_MPEG,
            "sound/im.wav");
        sound.play();
       
        window.addMessage(getContactNick(message.getFromID().toStringNoResource()), message.getBody(),false);
      }
      public void onMessageSent(XmppMessage message)
      {
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @param source the sound object
   */
  public SoundLoadStateChangeEvent(Object source) {
    super(source);
    Sound sound = (Sound) source;
    loadState = sound.getLoadState();
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @return a string representation of this event object
   */
  @Override
  public String toString() {
    Sound sound = (Sound) getSource();
    return StringUtil.getSimpleName(SoundLoadStateChangeEvent.class) + ": " + sound + "; "
        + loadState.name();
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @return the string representation of this event
   */
  @Override
  public String toString() {
    Sound sound = (Sound) getSource();
    return StringUtil.getSimpleName(PlaybackCompleteEvent.class) + ": " + sound;
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @param source the sound object
   */
  public SoundLoadStateChangeEvent(Object source) {
    super(source);
    Sound sound = (Sound) source;
    loadState = sound.getLoadState();
  }
View Full Code Here

Examples of com.allen_sauer.gwt.voices.client.Sound

   *
   * @return a string representation of this event object
   */
  @Override
  public String toString() {
    Sound sound = (Sound) getSource();
    return StringUtil.getSimpleName(SoundLoadStateChangeEvent.class) + ": " + sound + "; state="
        + loadStateToString(loadState);
  }
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.