Edytuj

Udostępnij za pośrednictwem


AVAudioSession.SetInputGain(Single, NSError) Method

Definition

Requests a specific gain level.

[Foundation.Export("setInputGain:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetInputGain (float gain, out Foundation.NSError outError);
abstract member SetInputGain : single *  -> bool
override this.SetInputGain : single *  -> bool

Parameters

gain
Single
outError
NSError

On failure, this contains the error details.

Returns

true if the request was successful, otherwise the outError parameter contains an instance of NSError describing the problem.

Attributes

Applies to