Package org.sound

Examples of org.sound.SoundException


        InputStream is = null;
        try {
            is = new SeekableInputStream(file);
            int ret = open(is, null, 0);
            if (ret == -1) {
                throw new SoundException("VorbisFile: open return -1");
            }
        } catch (IOException | SoundException e) {
            throw new SoundException("VorbisFile: " + e.toString());
        } finally {
            if (is != null) {
                try {
                    is.close();
                } catch (IOException e) {
View Full Code Here


                if (ret == OV_EREAD) {
                    return OV_EREAD;
                }
                if (ret < 0) {
                    if (offst == -1) {
                        throw new SoundException();
                    }
                    break;
                } else {
                    offst = ret;
                }
View Full Code Here

TOP

Related Classes of org.sound.SoundException

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.