AudioSession.PreferredHardwareSampleRate Property
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.
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.