AVAudioSession.SetInputGain(Single, NSError) 方法

定义

请求特定的增益级别。

[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

参数

gain
Single
outError
NSError

如果失败,则包含错误详细信息。

返回

true 如果请求成功,则为 ,否则 outError 参数包含描述问题的 NSError 实例。

属性

适用于