PHP 手冊
前一頁 |  | 下一頁

# LXXXVIII. OpenAL Audio Bindings

# 介紹

Platform independent audio bindings. Requires the OpenAL library.

# 安裝

This PECL extension is not bundled with PHP.

Additional information such as new releases, downloads, source files, maintainer information, and a CHANGELOG, can be located here: http://pecl.php.net/package/openal.

You may download this PECL extension DLL from the PHP Downloads page or at http://snaps.php.net/.

# 執行時期組態

`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