openal_buffer_data

(PECL openal >= 0.1.0)

openal_buffer_data Carga un buffer con datos

Descripción

openal_buffer_data(
    resource $buffer,
    int $format,
    string $data,
    int $freq
): bool

Parámetros

buffer

Un recurso Open AL(Buffer) (previamente creado por openal_buffer_create()).

format

Formato de data, uno de: AL_FORMAT_MONO8, AL_FORMAT_MONO16, AL_FORMAT_STEREO8 y AL_FORMAT_STEREO16

data

Bloque de datos de audio binario en el format y el freq especificado.

freq

Frecuencia de data dados en Hz.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant