PHP Manual
后退 |  | 前进

# LXXXIX. OpenAL Audio Bindings

# 简介

Platform independent audio bindings. Requires the OpenAL library.

# 安装

本 PECL 扩展未绑定于 PHP 中。

进一步信息例如新版本，下载，源程序，维护者信息以及更新日志可以在此找到： http://pecl.php.net/package/openal.

可以从 PHP 下载页面或者 http://snaps.php.net/ 下载此 PECL 扩展的 DLL 文件。

# 运行时配置

本扩展模块在 `php.ini` 中未定义任何设置指令。

# 资源类型

This extension defines four resource types: Open AL(Device) - Returned by openal_device_open(), Open AL(Context) - Returned by openal_context_create(), Open AL(Buffer) - Returned by openal_buffer_create(), and Open AL(Source) - Returned by openal_source_create().

# 预定义常量

以下常量由本扩展模块定义，因此只有在本扩展模块被编译到 PHP 中，或者在运行时被动态加载后才有效。

`ALC_FREQUENCY` (integer)

  Context Attribute

`ALC_REFRESH` (integer)

  Context Attribute

`ALC_SYNC` (integer)

  Context Attribute

`AL_FREQUENCY` (integer)

  Buffer Setting

`AL_BITS` (integer)

  Buffer Setting

`AL_CHANNELS` (integer)

  Buffer Setting

`AL_SIZE` (integer)

  Buffer Setting

`AL_BUFFER` (integer)

  Source/Listener Setting (Integer)

`AL_SOURCE_RELATIVE` (integer)

  Source/Listener Setting (Integer)

`AL_SOURCE_STATE` (integer)

  Source/Listener Setting (Integer)

`AL_PITCH` (integer)

  Source/Listener Setting (Float)

`AL_GAIN` (integer)

  Source/Listener Setting (Float)

`AL_MIN_GAIN` (integer)

  Source/Listener Setting (Float)

`AL_MAX_GAIN` (integer)

  Source/Listener Setting (Float)

`AL_MAX_DISTANCE` (integer)

  Source/Listener Setting (Float)

`AL_ROLLOFF_FACTOR` (integer)

  Source/Listener Setting (Float)

`AL_CONE_OUTER_GAIN` (integer)

  Source/Listener Setting (Float)

`AL_CONE_INNER_ANGLE` (integer)

  Source/Listener Setting (Float)

`AL_CONE_OUTER_ANGLE` (integer)

  Source/Listener Setting (Float)

`AL_REFERENCE_DISTANCE` (integer)

  Source/Listener Setting (Float)

`AL_POSITION` (integer)

  Source/Listener Setting (Float Vector)

`AL_VELOCITY` (integer)

  Source/Listener Setting (Float Vector)

`AL_DIRECTION` (integer)

  Source/Listener Setting (Float Vector)

`AL_ORIENTATION` (integer)

  Source/Listener Setting (Float Vector)

`AL_FORMAT_MONO8` (integer)

  PCM Format

`AL_FORMAT_MONO16` (integer)

  PCM Format

`AL_FORMAT_STEREO8` (integer)

  PCM Format

`AL_FORMAT_STEREO16` (integer)

  PCM Format

`AL_INITIAL` (integer)

  Source State

`AL_PLAYING` (integer)

  Source State

`AL_PAUSED` (integer)

  Source State

`AL_STOPPED` (integer)

  Source State

`AL_LOOPING` (integer)

  Source State

`AL_TRUE` (integer)

  Boolean value recognized by OpenAL

`AL_FALSE` (integer)

  Boolean value recognized by OpenAL

后退 | 起点 | 前进
ociwritetemporarylob | 上一级 | openal_buffer_create