array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.openal-buffer-data.php', 1 => 'openal_buffer_data', ), 'up' => array ( 0 => 'ref.openal.php', 1 => 'OpenAL Funktionen', ), 'prev' => array ( 0 => 'function.openal-buffer-create.php', 1 => 'openal_buffer_create', ), 'next' => array ( 0 => 'function.openal-buffer-destroy.php', 1 => 'openal_buffer_destroy', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/openal/functions/openal-buffer-data.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL openal >= 0.1.0)
openal_buffer_data — Load a buffer with data
buffer
An Open AL(Buffer) resource (previously created by openal_buffer_create()).
format
Format of data
, one of:
AL_FORMAT_MONO8
,
AL_FORMAT_MONO16
,
AL_FORMAT_STEREO8
und
AL_FORMAT_STEREO16
data
Block of binary audio data in the format
and
freq
specified.
freq
Frequency of data
given in Hz.