GetAudioSampleRate(ushort)
Gets the audio track sampling rate in Hertz.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Video
- Assembly: UnityEngine.VideoModule
public uint GetAudioSampleRate(ushort trackIndex)
Parameters
Index of the audio track to query.
Returns
Type | Description |
|---|---|
| uint | The sampling rate in Hertz. |
Remarks
For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare.