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 online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,383
    Blog Entries
    7
    Rep Power
    20

    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
    cenosillicaphobia: the fear for an empty beer glass

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, 11:34 AM
  3. Replies: 2
    Last Post: 10-31-2007, 03: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
  •