Package org.robovm.apple.avfoundation
Class AVAudioFile
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.avfoundation.AVAudioFile
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class AVAudioFile extends NSObject
- Since:
- Available in iOS 8.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AVAudioFile.AVAudioFilePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description AVAudioFile()
protected
AVAudioFile(NSObject.Handle h, long handle)
protected
AVAudioFile(NSObject.SkipInit skipInit)
AVAudioFile(NSURL fileURL)
AVAudioFile(NSURL fileURL, AVAudioCommonFormat format, boolean interleaved)
AVAudioFile(NSURL fileURL, AVAudioSettings settings)
AVAudioFile(NSURL fileURL, AVAudioSettings settings, AVAudioCommonFormat format, boolean interleaved)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AVAudioFormat
getFileFormat()
long
getFramePosition()
long
getLength()
AVAudioFormat
getProcessingFormat()
NSURL
getUrl()
boolean
readIntoBuffer(AVAudioPCMBuffer buffer)
boolean
readIntoBuffer(AVAudioPCMBuffer buffer, int frames)
void
setFramePosition(long v)
static java.lang.String
TypeKey()
boolean
writeFromBuffer(AVAudioPCMBuffer buffer)
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
AVAudioFile
public AVAudioFile()
-
AVAudioFile
protected AVAudioFile(NSObject.Handle h, long handle)
-
AVAudioFile
protected AVAudioFile(NSObject.SkipInit skipInit)
-
AVAudioFile
public AVAudioFile(NSURL fileURL) throws NSErrorException
- Throws:
NSErrorException
-
AVAudioFile
public AVAudioFile(NSURL fileURL, AVAudioCommonFormat format, boolean interleaved) throws NSErrorException
- Throws:
NSErrorException
-
AVAudioFile
public AVAudioFile(NSURL fileURL, AVAudioSettings settings) throws NSErrorException
- Throws:
NSErrorException
-
AVAudioFile
public AVAudioFile(NSURL fileURL, AVAudioSettings settings, AVAudioCommonFormat format, boolean interleaved) throws NSErrorException
- Throws:
NSErrorException
-
-
Method Detail
-
getUrl
public NSURL getUrl()
-
getFileFormat
public AVAudioFormat getFileFormat()
-
getProcessingFormat
public AVAudioFormat getProcessingFormat()
-
getLength
public long getLength()
-
getFramePosition
public long getFramePosition()
-
setFramePosition
public void setFramePosition(long v)
-
TypeKey
public static java.lang.String TypeKey()
- Since:
- Available in iOS 11.0 and later.
-
readIntoBuffer
public boolean readIntoBuffer(AVAudioPCMBuffer buffer) throws NSErrorException
- Throws:
NSErrorException
-
readIntoBuffer
public boolean readIntoBuffer(AVAudioPCMBuffer buffer, int frames) throws NSErrorException
- Throws:
NSErrorException
-
writeFromBuffer
public boolean writeFromBuffer(AVAudioPCMBuffer buffer) throws NSErrorException
- Throws:
NSErrorException
-
-