faint!!!hehe,难道就没有一个人接触过吗?
我大致搜索了一下,没有发现哪怕一篇有关于java sound的贴子!!

解决方案 »

  1.   

    这个程序是我从网上找的,你看看,可以用applet播放.wav文件的
    import java.awt.*;
    import java.applet.AudioClip;public class Looper extends javax.swing.JApplet implements Runnable {
        AudioClip bgSound;
        AudioClip beep;
        Thread runner;    public void init() {
            bgSound = getAudioClip(getCodeBase(),"雪中莲.wav");
            beep = getAudioClip(getCodeBase(), "雪中莲.wav");
        }    public void start() {
             if (runner == null) {
                 runner = new Thread(this);
                 runner.start();
             }
        }    public void stop() {
            if (runner != null) {
                if (bgSound != null)
                    bgSound.stop();
                runner = null;
            }
        }    public void run() {
            if (bgSound != null)
                bgSound.loop();
            Thread thisThread = Thread.currentThread();
            while (runner == thisThread) {
                try {
                    Thread.sleep(9000);
                    if (beep != null)
                        beep.play();
                } catch (InterruptedException e) { }
            }
       }    public void paint(Graphics screen) {
            Graphics2D screen2D = (Graphics2D)screen;
            screen2D.drawString("Playing Sounds ...", 10, 10);
        }
    }
      

  2.   

    倒掉,兄弟,我要的是怎么能读vox,不过dialogic没有公开数据格式的话恐怕难以实现,我就是不知道vox的数据格式到底有否公开,如果公开了是否有人就去写了个解码器?至于播放器sun提供了其他格式的,mps,mpeg,都能放了,JMF已经出了2。1的了算了,结贴!!