Düzenle

Aracılığıyla paylaş


AVAudioSession.SetPreferredSampleRate(Double, NSError) Method

Definition

Sets the preferred sample rate, in Hz.

[Foundation.Export("setPreferredSampleRate:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetPreferredSampleRate (double sampleRate, out Foundation.NSError error);
abstract member SetPreferredSampleRate : double *  -> bool
override this.SetPreferredSampleRate : double *  -> bool

Parameters

sampleRate
Double
error
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