e556. 在程序中播放音频

try {
        URL url = new URL("http://hostname/audio.au");
        AudioClip ac = Applet.newAudioClip(url);
        ac.play();
    } catch (MalformedURLException e) {
    }
Related Examples
原文地址:https://www.cnblogs.com/borter/p/9575317.html