Package com.apple.audio

Examples of com.apple.audio.CAException


/*    */     throws CAException
/*    */   {
/* 51 */     int i = MIDIDeviceDBGetModels(CAObject.ID(paramCAFString));
/* 52 */     if (i != 0)
/* 53 */       return new MIDIDeviceDBStringList(i);
/* 54 */     throw new CAException("MIDIDeviceDB::No property list:GetModels");
/*    */   }
View Full Code Here


/* 43 */     return getIntAt(0);
/*    */   }
/*    */
/*    */   public CAFString getNthString(int paramInt) throws CAException {
/* 47 */     if ((paramInt < 0) || (paramInt >= getNumberStrings()))
/* 48 */       throw new CAException("MIDIDeviceDB::Range error:" + paramInt);
/* 49 */     int i = getIntAt(4 + paramInt * 4);
/* 50 */     if (i == 0) {
/* 51 */       throw new CANullPointerException("MIDIDeviceDBProperty:");
/*    */     }
/*    */
View Full Code Here

/*    */       }
/*    */
/* 75 */       JDirectNative.CFRetain(i);
/* 76 */       return JDirectNative.newCAFString(i);
/*    */     }
/* 78 */     throw new CAException("MIDIDeviceDB::Wrong property type - NOT a string");
/*    */   }
View Full Code Here

/*    */   }
/*    */
/*    */   public int getNumberProperty() throws CAException {
/* 82 */     if (IsNumberProperty())
/* 83 */       return getIntAt(8);
/* 84 */     throw new CAException("MIDIDeviceDB::Wrong property type - NOT a number");
/*    */   }
View Full Code Here

/*     */     throws CAException
/*     */   {
/* 191 */     Integer localInteger = new Integer(paramInt);
/* 192 */     Object localObject1 = table.get(localInteger);
/* 193 */     if (localObject1 == null)
/* 194 */       throw new CAException("Can't find the specified listener <" + paramAHardwarePropertyListener + "> for this property <" + Integer.toHexString(paramInt) + ">");
/* 195 */     Vector localVector = (Vector)localObject1;
/* 196 */     Enumeration localEnumeration = localVector.elements();
/*     */
/* 198 */     Object localObject2 = null;
/* 199 */     while (localEnumeration.hasMoreElements()) {
/* 200 */       HardwareDispatcher localHardwareDispatcher = (HardwareDispatcher)localEnumeration.nextElement();
/* 201 */       if (localHardwareDispatcher.getAHListener() == paramAHardwarePropertyListener) {
/* 202 */         localObject2 = localHardwareDispatcher;
/* 203 */         localVector.removeElement(localObject2);
/*     */       }
/*     */     }
/*     */
/* 207 */     if (localVector.size() == 0)
/* 208 */       table.remove(localInteger);
/* 209 */     if (localObject2 == null) {
/* 210 */       throw new CAException("Can't find the specified listener <" + paramAHardwarePropertyListener + "> for this property <" + Integer.toHexString(paramInt) + ">");
/*     */     }
/* 212 */     int i = AudioHardwareRemovePropertyListener(paramInt, localObject2.ID());
/* 213 */     localObject2.cleanup();
/*     */
/* 215 */     CAException.checkError(i);
View Full Code Here

TOP

Related Classes of com.apple.audio.CAException

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.