Package aspect.audio

Examples of aspect.audio.SoundPlayer


        try {
            WaveData data = WaveData.create(new BufferedInputStream(new FileInputStream("sound/test.wav")));
            if (data == null) {
                throw new LWJGLException("data == null");
            }
            sound = new SoundPlayer(new AudioClip(data));
        } catch (LWJGLException | FileNotFoundException ex) {
            Logger.getLogger(SoundDemo.class.getName()).log(Level.SEVERE, null, ex);
        }
        addKeyListener(this);
    }
View Full Code Here

TOP

Related Classes of aspect.audio.SoundPlayer

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.