Package org.robovm.apple.audiotoolbox
Class AudioUnit
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.audiotoolbox.AudioComponentInstance
-
- org.robovm.apple.audiotoolbox.AudioUnit
-
public class AudioUnit extends AudioComponentInstance
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AudioUnit.AudioUnitPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.audiotoolbox.AudioComponentInstance
AudioComponentInstance.AudioComponentInstancePtr
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AudioUnit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyListener(AUPropertyType id, AUPropertyListener listener)
protected OSStatus
addPropertyListener0(AUPropertyType inID, org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
void
addRenderNotify(AURenderCallback callback)
protected OSStatus
addRenderNotify0(org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
boolean
canDo(AUOutputSelector selector)
boolean
canDo(AUSelector selector)
static AudioUnit
create(AudioComponent component)
protected static NSArray<?>
extensionCopyComponentList0(java.lang.String extensionIdentifier)
protected static OSStatus
extensionSetComponentList0(java.lang.String extensionIdentifier, NSArray<?> audioComponentInfo)
AUInputSamplesInOutputCallback
getInputSamplesInOutputCallback(AUScope scope)
int
getMaxFramesPerSlice(AUScope scope)
AUOutputMIDICallback
getMIDICallbacks(AUScope scope)
UIImage
getOutputHostIcon(float desiredPointSize)
float
getParameter(AUParameterType type, AUScope scope)
float
getParameter(AUParameterType type, AUScope scope, int element)
protected OSStatus
getParameter0(AUParameterType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.FloatPtr outValue)
<T extends org.robovm.rt.bro.Struct<T>>
TgetProperty(AUPropertyType type, java.lang.Class<T> returnType, AUScope scope)
<T extends org.robovm.rt.bro.Struct<T>>
TgetProperty(AUPropertyType type, java.lang.Class<T> returnType, AUScope scope, int element)
protected OSStatus
getProperty0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.VoidPtr outData, org.robovm.rt.bro.ptr.IntPtr ioDataSize)
double
getPropertyAsDouble(AUPropertyType type, AUScope scope)
float
getPropertyAsFloat(AUPropertyType type, AUScope scope)
int
getPropertyAsInt(AUPropertyType type, AUScope scope)
long
getPropertyAsLong(AUPropertyType type, AUScope scope)
protected OSStatus
getPropertyInfo0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.IntPtr outDataSize, org.robovm.rt.bro.ptr.BooleanPtr outWritable)
int
getPropertySize(AUPropertyType type, AUScope scope)
int
getPropertySize(AUPropertyType type, AUScope scope, int element)
AudioStreamBasicDescription
getStreamFormat(AUScope scope)
void
initialize()
protected OSStatus
initialize0()
boolean
isPropertyWritable(AUPropertyType type, AUScope scope)
boolean
isPropertyWritable(AUPropertyType type, AUScope scope, int element)
void
makeConnection(AUConnection connection, AUScope scope)
void
process(AUMutableRenderActionFlags actionFlags, AudioTimeStamp timeStamp, int numberFrames, AudioBufferList data)
protected OSStatus
process0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inNumberFrames, AudioBufferList ioData)
protected OSStatus
processMultiple0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inNumberFrames, int inNumberInputBufferLists, AudioBufferList.AudioBufferListPtr inInputBufferLists, int inNumberOutputBufferLists, AudioBufferList.AudioBufferListPtr ioOutputBufferLists)
void
publishOutput(AudioComponentDescription desc, java.lang.String name, int version)
protected static OSStatus
publishOutput0(AudioComponentDescription inDesc, java.lang.String inName, int inVersion, AudioUnit inOutputUnit)
void
removePropertyListener(AUPropertyType id, AUPropertyListener listener)
protected OSStatus
removePropertyListener0(AUPropertyType inID, org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
void
removeRenderNotify(AURenderCallback callback)
protected OSStatus
removeRenderNotify0(org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
void
render(AUMutableRenderActionFlags actionFlags, AudioTimeStamp timeStamp, int outputBusNumber, int numberFrames, AudioBufferList data)
void
render(AURenderActionFlags actionFlags, AudioTimeStamp timeStamp, int outputBusNumber, int numberFrames, AudioBufferList data)
protected OSStatus
render0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inOutputBusNumber, int inNumberFrames, AudioBufferList ioData)
void
reset(AUScope scope, int element)
protected OSStatus
reset0(AUScope inScope, int inElement)
void
scheduleAudioFileRegion(AUScheduledAudioFileRegion region, AUScope scope)
void
scheduleAudioSlice(AUScheduledAudioSlice slice, AUScope scope)
void
setHostCallback(AUHostCallback callback, AUScope scope)
void
setInputSamplesInOutputCallback(AUInputSamplesInOutputCallback callback, AUScope scope)
void
setMaxFramesPerSlice(int maxFramesPerSlice, AUScope scope)
void
setMIDICallbacks(AUOutputMIDICallback callback, AUScope scope)
void
setParameter(AUParameterType type, float value, AUScope scope)
void
setParameter(AUParameterType type, float value, AUScope scope, int element, int bufferOffsetInFrames)
protected OSStatus
setParameter0(AUParameterType inID, AUScope inScope, int inElement, float inValue, int inBufferOffsetInFrames)
void
setProperty(AUPropertyType type, double value, AUScope scope)
void
setProperty(AUPropertyType type, float value, AUScope scope)
void
setProperty(AUPropertyType type, int value, AUScope scope)
void
setProperty(AUPropertyType type, long value, AUScope scope)
<T extends org.robovm.rt.bro.Struct<T>>
voidsetProperty(AUPropertyType type, org.robovm.rt.bro.Struct<T> data, AUScope scope)
<T extends org.robovm.rt.bro.Struct<T>>
voidsetProperty(AUPropertyType type, org.robovm.rt.bro.Struct<T> data, AUScope scope, int element)
protected OSStatus
setProperty0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.VoidPtr inData, int inDataSize)
void
setRenderCallback(AURenderCallback callback, AUScope scope)
void
setStreamFormat(AudioStreamBasicDescription streamFormat, AUScope scope)
void
startOutput()
protected OSStatus
startOutput0()
void
stopOutput()
protected OSStatus
stopOutput0()
void
uninitialize()
protected OSStatus
uninitialize0()
-
Methods inherited from class org.robovm.apple.audiotoolbox.AudioComponentInstance
create0, dispose, dispose0, getComponent
-
-
-
-
Method Detail
-
create
public static AudioUnit create(AudioComponent component) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
canDo
public boolean canDo(AUSelector selector)
- Since:
- Available in iOS 3.0 and later.
-
canDo
public boolean canDo(AUOutputSelector selector)
- Since:
- Available in iOS 3.0 and later.
-
initialize
public void initialize() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
uninitialize
public void uninitialize() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getPropertySize
public int getPropertySize(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getPropertySize
public int getPropertySize(AUPropertyType type, AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
isPropertyWritable
public boolean isPropertyWritable(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
isPropertyWritable
public boolean isPropertyWritable(AUPropertyType type, AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getProperty
public <T extends org.robovm.rt.bro.Struct<T>> T getProperty(AUPropertyType type, java.lang.Class<T> returnType, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getProperty
public <T extends org.robovm.rt.bro.Struct<T>> T getProperty(AUPropertyType type, java.lang.Class<T> returnType, AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
setProperty
public <T extends org.robovm.rt.bro.Struct<T>> void setProperty(AUPropertyType type, org.robovm.rt.bro.Struct<T> data, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
setProperty
public <T extends org.robovm.rt.bro.Struct<T>> void setProperty(AUPropertyType type, org.robovm.rt.bro.Struct<T> data, AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getPropertyAsInt
public int getPropertyAsInt(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getPropertyAsLong
public long getPropertyAsLong(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getPropertyAsFloat
public float getPropertyAsFloat(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getPropertyAsDouble
public double getPropertyAsDouble(AUPropertyType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setProperty
public void setProperty(AUPropertyType type, int value, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setProperty
public void setProperty(AUPropertyType type, long value, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setProperty
public void setProperty(AUPropertyType type, float value, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setProperty
public void setProperty(AUPropertyType type, double value, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getMaxFramesPerSlice
public int getMaxFramesPerSlice(AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setMaxFramesPerSlice
public void setMaxFramesPerSlice(int maxFramesPerSlice, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getStreamFormat
public AudioStreamBasicDescription getStreamFormat(AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setStreamFormat
public void setStreamFormat(AudioStreamBasicDescription streamFormat, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
makeConnection
public void makeConnection(AUConnection connection, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setRenderCallback
public void setRenderCallback(AURenderCallback callback, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setHostCallback
public void setHostCallback(AUHostCallback callback, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getInputSamplesInOutputCallback
public AUInputSamplesInOutputCallback getInputSamplesInOutputCallback(AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setInputSamplesInOutputCallback
public void setInputSamplesInOutputCallback(AUInputSamplesInOutputCallback callback, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
scheduleAudioSlice
public void scheduleAudioSlice(AUScheduledAudioSlice slice, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
scheduleAudioFileRegion
public void scheduleAudioFileRegion(AUScheduledAudioFileRegion region, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
getMIDICallbacks
public AUOutputMIDICallback getMIDICallbacks(AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
setMIDICallbacks
public void setMIDICallbacks(AUOutputMIDICallback callback, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
-
addPropertyListener
public void addPropertyListener(AUPropertyType id, AUPropertyListener listener) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
removePropertyListener
public void removePropertyListener(AUPropertyType id, AUPropertyListener listener) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
addRenderNotify
public void addRenderNotify(AURenderCallback callback) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
removeRenderNotify
public void removeRenderNotify(AURenderCallback callback) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getParameter
public float getParameter(AUParameterType type, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getParameter
public float getParameter(AUParameterType type, AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
setParameter
public void setParameter(AUParameterType type, float value, AUScope scope) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
setParameter
public void setParameter(AUParameterType type, float value, AUScope scope, int element, int bufferOffsetInFrames) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
render
public void render(AURenderActionFlags actionFlags, AudioTimeStamp timeStamp, int outputBusNumber, int numberFrames, AudioBufferList data) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
render
public void render(AUMutableRenderActionFlags actionFlags, AudioTimeStamp timeStamp, int outputBusNumber, int numberFrames, AudioBufferList data) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
process
public void process(AUMutableRenderActionFlags actionFlags, AudioTimeStamp timeStamp, int numberFrames, AudioBufferList data) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 6.0 and later.
-
reset
public void reset(AUScope scope, int element) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
publishOutput
public void publishOutput(AudioComponentDescription desc, java.lang.String name, int version) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 7.0 and later.
-
startOutput
public void startOutput() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
stopOutput
public void stopOutput() throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
initialize0
protected OSStatus initialize0()
- Since:
- Available in iOS 2.0 and later.
-
uninitialize0
protected OSStatus uninitialize0()
- Since:
- Available in iOS 2.0 and later.
-
getPropertyInfo0
protected OSStatus getPropertyInfo0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.IntPtr outDataSize, org.robovm.rt.bro.ptr.BooleanPtr outWritable)
- Since:
- Available in iOS 2.0 and later.
-
getProperty0
protected OSStatus getProperty0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.VoidPtr outData, org.robovm.rt.bro.ptr.IntPtr ioDataSize)
- Since:
- Available in iOS 2.0 and later.
-
setProperty0
protected OSStatus setProperty0(AUPropertyType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.VoidPtr inData, int inDataSize)
- Since:
- Available in iOS 2.0 and later.
-
addPropertyListener0
protected OSStatus addPropertyListener0(AUPropertyType inID, org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
- Since:
- Available in iOS 2.0 and later.
-
removePropertyListener0
protected OSStatus removePropertyListener0(AUPropertyType inID, org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
- Since:
- Available in iOS 2.0 and later.
-
addRenderNotify0
protected OSStatus addRenderNotify0(org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
- Since:
- Available in iOS 2.0 and later.
-
removeRenderNotify0
protected OSStatus removeRenderNotify0(org.robovm.rt.bro.ptr.FunctionPtr inProc, long inProcUserData)
- Since:
- Available in iOS 2.0 and later.
-
getParameter0
protected OSStatus getParameter0(AUParameterType inID, AUScope inScope, int inElement, org.robovm.rt.bro.ptr.FloatPtr outValue)
- Since:
- Available in iOS 2.0 and later.
-
setParameter0
protected OSStatus setParameter0(AUParameterType inID, AUScope inScope, int inElement, float inValue, int inBufferOffsetInFrames)
- Since:
- Available in iOS 2.0 and later.
-
render0
protected OSStatus render0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inOutputBusNumber, int inNumberFrames, AudioBufferList ioData)
- Since:
- Available in iOS 2.0 and later.
-
process0
protected OSStatus process0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inNumberFrames, AudioBufferList ioData)
- Since:
- Available in iOS 6.0 and later.
-
processMultiple0
protected OSStatus processMultiple0(AUMutableRenderActionFlags actionFlags, AudioTimeStamp inTimeStamp, int inNumberFrames, int inNumberInputBufferLists, AudioBufferList.AudioBufferListPtr inInputBufferLists, int inNumberOutputBufferLists, AudioBufferList.AudioBufferListPtr ioOutputBufferLists)
- Since:
- Available in iOS 6.0 and later.
-
reset0
protected OSStatus reset0(AUScope inScope, int inElement)
- Since:
- Available in iOS 2.0 and later.
-
publishOutput0
protected static OSStatus publishOutput0(AudioComponentDescription inDesc, java.lang.String inName, int inVersion, AudioUnit inOutputUnit)
- Since:
- Available in iOS 7.0 and later.
-
getOutputHostIcon
public UIImage getOutputHostIcon(float desiredPointSize)
- Since:
- Available in iOS 7.0 and later.
-
extensionSetComponentList0
protected static OSStatus extensionSetComponentList0(java.lang.String extensionIdentifier, NSArray<?> audioComponentInfo)
- Since:
- Available in iOS 11.0 and later.
-
extensionCopyComponentList0
protected static NSArray<?> extensionCopyComponentList0(java.lang.String extensionIdentifier)
- Since:
- Available in iOS 11.0 and later.
-
startOutput0
protected OSStatus startOutput0()
- Since:
- Available in iOS 2.0 and later.
-
stopOutput0
protected OSStatus stopOutput0()
- Since:
- Available in iOS 2.0 and later.
-
-