# getSoundBufferLength (Client)

> Kept for MTA compatibility, where it gives the buffer length of an internet stream.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Sound
- **URL**: https://wiki.mymp.gg/en/getSoundBufferLength

## Syntax

```lua
bool getSoundBufferLength(sound sound)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `sound` | `sound` | The `sound` element, or a `dui` element for the browser's sound. |

## Returns

Always `false`.

## Example

```lua
local length = getSoundBufferLength(music) or getSoundLength(music)
```

### Coming from MTA

MYMP does not play internet streams, so there is no buffer to measure.

## See also

- [getSoundLength (Shared)](https://wiki.mymp.gg/en/getSoundLength.md): Returns the sound's length.
- [playSound (Client)](https://wiki.mymp.gg/en/playSound-client.md): Plays a sound with no position in the world, on this client only. Fires onClientSoundStarted with the reason play.
