# GetAudioSampleRate(ushort)

> Gets the audio track sampling rate in Hertz.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Video](/engine/6000.0/script-reference/unityengine/video.md)
* **Assembly:** UnityEngine.VideoModule

```csharp
public uint GetAudioSampleRate(ushort trackIndex)
```

### Parameters

**** (\[ushort]\(https\://learn.microsoft.com/dotnet/api/system.uint16)): Index of the audio track to query.

### Returns

| Type                                                         | Description                 |
| ------------------------------------------------------------ | --------------------------- |
| [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The sampling rate in Hertz. |

### Remarks

For URL sources, this will only be set once the source preparation is completed.  See [VideoPlayer.Prepare](/engine/6000.0/script-reference/unityengine/video/videoplayer/prepare.md).
