AVAudioSession.SetPreferredHardwareSampleRate(Double, NSError) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Application developers should not use this deprecated method. Instead use M:AVFoundation.AVAudioSession.SetPreferredSampleRate(Double, out NSError)
[Foundation.Export("setPreferredHardwareSampleRate:error:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'SetPreferredSampleRate' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetPreferredHardwareSampleRate (double sampleRate, out Foundation.NSError outError);
abstract member SetPreferredHardwareSampleRate : double * -> bool
override this.SetPreferredHardwareSampleRate : double * -> bool
Parameters
- sampleRate
- Double
- 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