# getSoundBufferLength (Cliente)

> Existe por compatibilidad con MTA, donde da el tamaño del búfer de un stream de internet.

- **Plataforma**: MY Multiplayer (MYMP)
- **Tipo**: Función Lua
- **Lado**: Cliente
- **Categoría**: Sonido
- **URL**: https://wiki.mymp.gg/es/getSoundBufferLength

## Sintaxis

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

## Parámetros

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `sound` | `sound` | El elemento `sound`, o un elemento `dui` para el sonido del navegador. |

## Retorno

Siempre `false`.

## Ejemplo

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

### Si vienes de MTA

MYMP no reproduce streams de internet, así que no hay búfer que medir.

## Ver también

- [getSoundLength (Compartido)](https://wiki.mymp.gg/es/getSoundLength.md): Devuelve la duración del sonido.
- [playSound (Cliente)](https://wiki.mymp.gg/es/playSound-client.md): Reproduce un sonido sin posición en el mundo, solo en este cliente. Dispara onClientSoundStarted con el motivo play.
