Refine search
public static boolean isUISound(int systemSoundID) throws OSStatusException { IntPtr ptr = new IntPtr(systemSoundID); IntPtr result = getProperty(AudioServicesProperty.IsUISound, ptr, IntPtr.class); return result.get() == 1; } public static void setUISound(int systemSoundID, boolean ui) throws OSStatusException {
public static boolean completesPlaybackIfAppDies(int systemSoundID) throws OSStatusException { IntPtr ptr = new IntPtr(systemSoundID); IntPtr result = getProperty(AudioServicesProperty.CompletePlaybackIfAppDies, ptr, IntPtr.class); return result.get() == 1; } public static void setCompletesPlaybackIfAppDies(int systemSoundID, boolean ui) throws OSStatusException {
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. * @deprecated Deprecated in iOS 7.0. */ @Deprecated public static int getPropertySize(AudioSessionProperty id) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getPropertySize0(id, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); }
/** * @throws OSStatusException * @since Available in iOS 2.1 and later. */ public int getPropertySize(ExtAudioFileProperty id) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getPropertyInfo0(id, ptr, null); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public int getUserDataSize(int userDataID, int index) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getUserDataSize0(userDataID, index, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public boolean isPropertyWritable(AudioFileProperty id) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getPropertyInfo0(id, null, ptr); OSStatusException.throwIfNecessary(status); return ptr.get() != 0; } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public int getPropertySize(AudioConverterProperty id) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = getPropertyInfo0(id, ptr, null); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**
/** * @throws OSStatusException * @since Available in iOS 2.0 and later. */ public static int createSystemSoundID(NSURL fileURL) throws OSStatusException { IntPtr ptr = new IntPtr(); OSStatus status = createSystemSoundID0(fileURL, ptr); OSStatusException.throwIfNecessary(status); return ptr.get(); } /**