# GetDeviceCaps(string, out int, out int)

> Get the frequency capabilities of a device.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AudioModule

## GetDeviceCaps(string, int, int)

```csharp
public static void GetDeviceCaps(string deviceName, out int minFreq, out int maxFreq)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the device.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Returns the minimum sampling frequency of the device.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Returns the maximum sampling frequency of the device.

### Remarks

Passing null or an empty string for the device name will select the default device. You can use the [\_devices](/engine/6000.7/script-reference/unityengine/microphone/devices.md) property to get a list of all available microphones.

When both `minFreq` and `maxFreq` parameters return `0`, the device supports any frequency.

**Note:** On Android and iOS, the returned values might not reflect the device's actual capabilities. The minimum and maximum frequencies are often reported as `16000` or `0` even when recording at other sample rates works. Use the returned values as a hint rather than a strict constraint on these platforms.
