Modifica

Share via


AVAudioUnit.FromComponentDescriptionAsync Method

Definition

Creates and returns a new AVAudioUnit from the specified audioComponentDescription, running a handler after it has created it.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<AVFoundation.AVAudioUnit> FromComponentDescriptionAsync (AudioUnit.AudioComponentDescription audioComponentDescription, AudioUnit.AudioComponentInstantiationOptions options);
static member FromComponentDescriptionAsync : AudioUnit.AudioComponentDescription * AudioUnit.AudioComponentInstantiationOptions -> System.Threading.Tasks.Task<AVFoundation.AVAudioUnit>

Parameters

audioComponentDescription
AudioComponentDescription

A value that contains the manufacturer, name, and version of the underlying audio unit hardware.

options
AudioComponentInstantiationOptions

A value that controls whether the unit will be loaded in or out of process.

Returns

A task that represents the asynchronous FromComponentDescription operation. The value of the TResult parameter is of type System.Action<AVFoundation.AVAudioUnit,Foundation.NSError>.

Attributes

Remarks

The FromComponentDescriptionAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to