Package org.tools.sound

Examples of org.tools.sound.StreamPlayer


            // sometimes you have a mixer, but don't get a line, disable the mixer in these cases
            if (line == null) {
                SoundSystem.clearMixer();
                return;
            }
            StreamPlayer player = StreamPlayer.create(line, "Music");
            jukebox = JukeBox.create(player);
            jukebox.setAutoRewind(true);
            jukebox.setSongBeginListener(new PlayEventListener() {
                @Override
                public void newEvent(String event) {
View Full Code Here


     * resources.
     */
    public static void cleanup() {
        stop();
        if (jukebox != null) {
            StreamPlayer player = jukebox.getPlayer();
            player.destroy();
            jukebox = null;
        }
        SoundSystem.clearMixer();
    }
View Full Code Here

TOP

Related Classes of org.tools.sound.StreamPlayer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.