e556. 在程序中播放音频

try {
        URL url = new URL("http://hostname/audio.au");
        AudioClip ac = Applet.newAudioClip(url);
        ac.play();
    } catch (MalformedURLException e) {
    }

 

Related Examples
posted @ 2018-09-02 21:06  borter  阅读(155)  评论(0编辑  收藏  举报