Class AudioUnitSource
An iOS AudioUnit source.
Inheritance
System.Object
MediaSource<IAudioOutput, IAudioInput, IAudioInputCollection, AudioSource, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>
AudioUnitSource
Implements
Inherited Members
Namespace: FM.LiveSwitch.Cocoa
Assembly: FM.LiveSwitch.Cocoa.dll
Syntax
public class AudioUnitSource : AudioSource, IAudioOutput, IMediaOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IOutput<IAudioOutput, IAudioInput, AudioFrame, AudioBuffer, AudioBufferCollection, AudioFormat>, IAudioElement, IMediaElement, IElement
Constructors
AudioUnitSource(AudioConfig)
Initializes a new instance of the AudioUnitSource class.
Declaration
public AudioUnitSource(AudioConfig config)
Parameters
Type | Name | Description |
---|---|---|
AudioConfig | config | The configuration. |
AudioUnitSource(AudioFormat)
Initializes a new instance of the AudioUnitSource class.
Declaration
public AudioUnitSource(AudioFormat outputFormat)
Parameters
Type | Name | Description |
---|---|---|
AudioFormat | outputFormat | The output format. |
Properties
BypassVoiceProcessing
Gets or sets a value indicating whether to bypass voice processing.
Declaration
public bool BypassVoiceProcessing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultBufferLength
Gets the default length of the buffer.
Declaration
public int DefaultBufferLength { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Label
Gets a label that identifies this class.
Declaration
public override string Label { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.Label
ObserveInterruptions
Gets or sets a value indicating whether [observe interruptions].
Declaration
public bool ObserveInterruptions { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseVoiceProcessingIO
Gets or sets a value indicating whether to use voice processing IO.
Declaration
public bool UseVoiceProcessingIO { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
VoiceProcessingEnableAGC
Gets or sets a value indicating whether to enable AGC voice processing.
Declaration
public bool VoiceProcessingEnableAGC { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
ConvertAudioUnitInputCallback(ref Int32, AudioBuffers, ref AudioStreamPacketDescription[])
Declaration
public AudioConverterError ConvertAudioUnitInputCallback(ref int ioNumberOfPackets, AudioBuffers ioData, ref AudioStreamPacketDescription[] packetDescription)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | ioNumberOfPackets | |
AudioBuffers | ioData | |
AudioStreamPacketDescription[] | packetDescription |
Returns
Type | Description |
---|---|
AudioConverterError |
DoStart()
Starts this instance.
Declaration
protected override Future<object> DoStart()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoStart()
DoStop()
Stops this instance.
Declaration
protected override Future<object> DoStop()
Returns
Type | Description |
---|---|
Future<System.Object> |
Overrides
FM.LiveSwitch.MediaSource<FM.LiveSwitch.IAudioOutput, FM.LiveSwitch.IAudioInput, FM.LiveSwitch.IAudioInputCollection, FM.LiveSwitch.AudioSource, FM.LiveSwitch.AudioFrame, FM.LiveSwitch.AudioBuffer, FM.LiveSwitch.AudioBufferCollection, FM.LiveSwitch.AudioFormat>.DoStop()