Results 1 to 2 of 2

Thread: sound playing

  1. #1
    nikkka is offline Member
    Join Date
    Mar 2011
    Posts
    45
    Rep Power
    0

    Default sound playing

    when playing sound, i want file a.wav to sound RIGHT after i.wav, but it's sensible delay between these two. what should i do?
    Java Code:
            Clip clip = (Clip) AudioSystem.getLine(info);
            clip.open(i);
            clip.start();
            clip.close();
            clip.open(a);
            clip.start();

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,048
    Blog Entries
    7
    Rep Power
    23

    Default

    Quote Originally Posted by nikkka View Post
    when playing sound, i want file a.wav to sound RIGHT after i.wav, but it's sensible delay between these two. what should i do?
    Java Code:
            Clip clip = (Clip) AudioSystem.getLine(info);
            clip.open(i);
            clip.start();
            clip.close();
            clip.open(a);
            clip.start();
    Please don't double post your question in different forum sections.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. playing sounds with the javax.sound package
    By hannes in forum Advanced Java
    Replies: 8
    Last Post: 05-27-2010, 06:45 PM
  2. Re-playing sound
    By JSK in forum CLDC and MIDP
    Replies: 0
    Last Post: 02-06-2008, 12:34 PM
  3. Replies: 2
    Last Post: 10-31-2007, 04:55 PM
  4. Playing sound in applet??????
    By Bagesh in forum Java Applets
    Replies: 2
    Last Post: 07-13-2007, 04:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •