Package net.java.games.joal.util

Examples of net.java.games.joal.util.WAVData


    public AudioBuffer loadBuffer(InputStream is)
            throws UnsupportedAudioFileException, IOException {
        AudioBuffer result;
        AudioBuffer[] tmp = generateBuffers(1);
        result = tmp[0];
        WAVData wd = WAVLoader.loadFromStream(is);
        result.configure(wd.data, wd.format, wd.freq);
        return result;
    }
View Full Code Here


     * @throws UnsupportedAudioFileException
     */
    public AudioBuffer loadBuffer(String fileName) {
        AudioBuffer result = null;
        try {
            WAVData wd = WAVLoader.loadFromFile(fileName);
            AudioBuffer[] tmp = generateBuffers(1);
            result = tmp[0];
            result.configure(wd.data, wd.format, wd.freq);
        } catch (IOException e) {
            logger.severe(e.getMessage());
View Full Code Here

TOP

Related Classes of net.java.games.joal.util.WAVData

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.