Edit

Share via


AudioSession.PreferredHardwareSampleRate Property

Definition

Your desired audio sample rate.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.None, "AudioSession[Get|Set]Property are deprecated in iOS7")]
public static double PreferredHardwareSampleRate { get; set; }
member this.PreferredHardwareSampleRate : double with get, set

Property Value

Attributes

Remarks

There is no guarantee that you will get the requested sample rate, you can determine the actual number by reading the CurrentHardwareSampleRate property.

If there is an error reading or setting the property, this will raise an AudioSessionException.

Applies to