# Sandbox.Sound.PlayFile

## Overload 1

```csharp
static SoundHandle PlayFile(SoundFile soundFile, float volume, float pitch, float decibels, float delay, float fadeInTime = 0)
```

> **Obsolete.** Decibels are obsolete

### Parameters

- `soundFile` (`SoundFile`)
- `volume` (`float`)
- `pitch` (`float`)
- `decibels` (`float`)
- `delay` (`float`)
- `fadeInTime` (`float`), default `0`

### Returns

`SoundHandle`

## Overload 2

```csharp
static SoundHandle PlayFile(SoundFile soundFile, float volume = 1, float pitch = 1, float delay = 0, float fadeInTime = 0)
```

### Parameters

- `soundFile` (`SoundFile`)
- `volume` (`float`), default `1`
- `pitch` (`float`), default `1`
- `delay` (`float`), default `0`
- `fadeInTime` (`float`), default `0`

### Returns

`SoundHandle`

Declared in [Sandbox.Sound](/api/Sandbox.Sound).
Assembly: `Sandbox.Engine`.
