/** * Copies {@code n} doubles from the memory pointed to by this {@link DoublePtr} * to a new {@code double[]} instance. * * @param n the number of doubles to copy. * @return the {@code double[]}. */ public double[] toDoubleArray(int n) { double[] result = new double[n]; get(result); return result; }
/** * Copies {@code dst.length} doubles from the memory pointed to by this * {@link DoublePtr} to {@code dst}. * * @param dst the destination. */ public void get(double[] dst) { get(dst, 0, dst.length); }
public double getPropertyAsDouble(AUPropertyType type, AUScope scope) throws OSStatusException { DoublePtr ptr = getProperty(type, DoublePtr.class, scope); return ptr.get(); } public void setProperty(AUPropertyType type, int value, AUScope scope) throws OSStatusException {
@Deprecated public static double getPropertyAsDouble(AudioSessionProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } @Deprecated
public double getPropertyAsDouble(MusicTrackProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } public void setProperty(MusicTrackProperty id, int value) throws OSStatusException {
public double getPropertyAsDouble(ExtAudioFileProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } public void setProperty(ExtAudioFileProperty id, int value) throws OSStatusException {
public double getPropertyAsDouble(AudioConverterProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } public void setProperty(AudioConverterProperty id, int value) throws OSStatusException {
public double getPropertyAsDouble(AudioFileProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } public void setProperty(AudioFileProperty id, int value) throws OSStatusException {
public double getPropertyAsDouble(AudioQueueProperty id) throws OSStatusException { DoublePtr ptr = getProperty(id, DoublePtr.class); return ptr.get(); } public void setProperty(AudioQueueProperty id, int value) throws OSStatusException {
public double getAbsoluteTime(String string, CFRange rangep) { DoublePtr ptr = new DoublePtr(); getAbsoluteTime(string, rangep, ptr); return ptr.get(); } /*<methods>*/
public double scanDouble() { DoublePtr ptr = new DoublePtr(); if (!scanDouble(ptr)) { return 0; } return ptr.get(); } public int scanHexInt() {
/** * @since Available in iOS 2.0 and later. */ public double scanHexDouble() { DoublePtr ptr = new DoublePtr(); if (!scanHexDouble(ptr)) { return 0; } return ptr.get(); } public String scanString(String string) {
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public double getPlayRateScalar() throws OSStatusException { DoublePtr ptr = new DoublePtr(); OSStatus status = getPlayRateScalar0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public double getTime() throws OSStatusException { DoublePtr ptr = new DoublePtr(); OSStatus status = getTime0(ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
public static double getRoundingIncrementForCurrencyCode(String currencyCode) { DoublePtr ptr = new DoublePtr(); getDecimalInfoForCurrencyCode(currencyCode, new IntPtr(), ptr); return ptr.get(); } /*<methods>*/
public double doubleValue() { VoidPtr ptr = new VoidPtr(); getValue(CFNumberType.Float64Type, ptr); return ptr.as(DoublePtr.class).get(); } public boolean booleanValue() {
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public double getBeatsForHostTime(long hostTime) throws OSStatusException { DoublePtr ptr = new DoublePtr(); OSStatus status = getBeatsForHostTime0(hostTime, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @since Available in iOS 2.0 and later. */ public double getDuration(NSCalendarUnit unit, NSDate date) { DoublePtr ptr = new DoublePtr(); if (getRange(unit, new NSDate.NSDatePtr(), ptr, date)) { return ptr.get(); } return 0; } /*<methods>*/
/** * @throws OSStatusException * @since Available in iOS 5.0 and later. */ public double convertBarBeatTimeToBeats(CABarBeatTime barBeatTime) throws OSStatusException { DoublePtr ptr = new DoublePtr(); OSStatus status = convertBarBeatTimeToBeats0(barBeatTime, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /*<methods>*/
/** * @since Available in iOS 2.0 and later. */ public double getStartTimeOfUnit(CFCalendarUnit unit, double at) { DoublePtr ptr = new DoublePtr(); getTimeRangeOfUnit(unit, at, ptr, new DoublePtr()); return ptr.get(); } /**