Examples of SoundException


Examples of javax.media.j3d.SoundException

/*     */   }
/*     */
/*     */   public void fillDistanceAttenuation(float innerRadius, float maxConstantGain, float unitDistance, float unitGain, int curveType, Point2f[] distanceAttenuation)
/*     */   {
/* 103 */     if (distanceAttenuation == null) {
/* 104 */       throw new SoundException(J3dUtilsI18N.getString("DistanceAttenuation0"));
/*     */     }
/* 106 */     int length = distanceAttenuation.length;
/* 107 */     distanceAttenuation[0].x = innerRadius;
/* 108 */     distanceAttenuation[0].y = maxConstantGain;
/*     */
View Full Code Here

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

Examples of org.sound.SoundException

                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
Copyright © 2018 www.massapi.com. 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.