C# Class MonoMac.AudioToolbox.AudioUnit

Inheritance: IDisposable, MonoMac.ObjCRuntime.INativeObject
Show file Open project: kangaroo/maccore Class Usage Examples

Public Methods

Method Description
AudioUnit ( IntPtr handle ) : System
CreateInstance ( AudioComponent cmp ) : AudioUnit
Dispose ( ) : void
Dispose ( bool disposing ) : void
GetAudioFormat ( AudioUnitScopeType scope, uint audioUnitElement ) : MonoMac.AudioToolbox.AudioStreamBasicDescription
Initialize ( ) : void
Render ( AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data ) : void
SetAudioFormat ( MonoMac audioFormat, AudioUnitScopeType scope, uint audioUnitElement ) : void
SetEnableIO ( bool enableIO, AudioUnitScopeType scope, uint audioUnitElement ) : void
Start ( ) : void
Stop ( ) : void
TryRender ( AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data ) : AudioUnitStatus

Private Methods

Method Description
AudioComponentInstanceNew ( IntPtr inComponent, IntPtr &inDesc ) : int
AudioOutputUnitStart ( IntPtr ci ) : int
AudioOutputUnitStop ( IntPtr ci ) : int
AudioUnitGetProperty ( IntPtr inUnit, [ inID, [ inScope, [ inElement, MonoMac &outData, uint &ioDataSize ) : int
AudioUnitGetProperty ( IntPtr inUnit, [ inID, [ inScope, [ inElement, uint &flag, uint &ioDataSize ) : int
AudioUnitInitialize ( IntPtr inUnit ) : int
AudioUnitRender ( IntPtr inUnit, AudioUnitRenderActionFlags &ioActionFlags, AudioTimeStamp &inTimeStamp, int inOutputBusNumber, int inNumberFrames, AudioBufferList ioData ) : int
AudioUnitSetProperty ( IntPtr inUnit, [ inID, [ inScope, [ inElement, AURenderCallbackStrct inData, uint inDataSize ) : int
AudioUnitSetProperty ( IntPtr inUnit, [ inID, [ inScope, [ inElement, MonoMac &inData, uint inDataSize ) : int
AudioUnitSetProperty ( IntPtr inUnit, [ inID, [ inScope, [ inElement, uint &flag, uint inDataSize ) : int
AudioUnitUnInitialize ( IntPtr inUnit ) : int
renderCallback ( IntPtr inRefCon, AudioUnitRenderActionFlags &_ioActionFlags, AudioTimeStamp &_inTimeStamp, int _inBusNumber, int _inNumberFrames, AudioBufferList _ioData ) : int

Method Details

AudioUnit() public method

public AudioUnit ( IntPtr handle ) : System
handle System.IntPtr
return System

CreateInstance() public static method

public static CreateInstance ( AudioComponent cmp ) : AudioUnit
cmp AudioComponent
return AudioUnit

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

GetAudioFormat() public method

public GetAudioFormat ( AudioUnitScopeType scope, uint audioUnitElement ) : MonoMac.AudioToolbox.AudioStreamBasicDescription
scope AudioUnitScopeType
audioUnitElement uint
return MonoMac.AudioToolbox.AudioStreamBasicDescription

Initialize() public method

public Initialize ( ) : void
return void

Render() public method

public Render ( AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data ) : void
flags AudioUnitRenderActionFlags
timeStamp AudioTimeStamp
outputBusnumber int
numberFrames int
data AudioBufferList
return void

SetAudioFormat() public method

public SetAudioFormat ( MonoMac audioFormat, AudioUnitScopeType scope, uint audioUnitElement ) : void
audioFormat MonoMac
scope AudioUnitScopeType
audioUnitElement uint
return void

SetEnableIO() public method

public SetEnableIO ( bool enableIO, AudioUnitScopeType scope, uint audioUnitElement ) : void
enableIO bool
scope AudioUnitScopeType
audioUnitElement uint
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

TryRender() public method

public TryRender ( AudioUnitRenderActionFlags flags, AudioTimeStamp timeStamp, int outputBusnumber, int numberFrames, AudioBufferList data ) : AudioUnitStatus
flags AudioUnitRenderActionFlags
timeStamp AudioTimeStamp
outputBusnumber int
numberFrames int
data AudioBufferList
return AudioUnitStatus