1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-26 16:52:12 +01:00
Files
archived-doc-ru/reference/openal/functions/openal-buffer-data.xml
Sergey Panteleev daef8df962 Обнуление тега Reviewed (#364)
[skip-lint]
[skip-spellcheck]
2021-11-16 13:03:53 +03:00

101 lines
3.0 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14af302c9c0e561fa6f9cdd956268758ba9a89c5 Maintainer: lex Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.openal-buffer-data" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>openal_buffer_data</refname>
<refpurpose>
Загрузка буфера с данными
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>openal_buffer_data</methodname>
<methodparam><type>resource</type><parameter>buffer</parameter></methodparam>
<methodparam><type>int</type><parameter>format</parameter></methodparam>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
<methodparam><type>int</type><parameter>freq</parameter></methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>buffer</parameter></term>
<listitem>
<para>
Ресурс <link linkend="openal.resources">Open AL(Buffer)</link>
(созданный ранее с помощью <function>openal_buffer_create</function>).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>format</parameter></term>
<listitem>
<para>
Формат <parameter>data</parameter>, представленный одной из констант:
<constant>AL_FORMAT_MONO8</constant>,
<constant>AL_FORMAT_MONO16</constant>,
<constant>AL_FORMAT_STEREO8</constant>&listendand;
<constant>AL_FORMAT_STEREO16</constant>
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>data</parameter></term>
<listitem>
<para>
Блок двоичных аудиоданных в указанном формате <parameter>format</parameter>
и с частотой <parameter>freq</parameter>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>freq</parameter></term>
<listitem>
<para>
Частота <parameter>data</parameter>, заданная в герцах.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.success;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>openal_buffer_loadwav</function></member>
<member><function>openal_stream</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->