mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-29 15:28:55 +00:00
88 lines
2.4 KiB
XML
88 lines
2.4 KiB
XML
![]() |
<?xml version='1.0' encoding='iso-8859-1'?>
|
||
|
<!-- $Revision: 1.1 $ -->
|
||
|
<refentry id="function.openal-stream">
|
||
|
<refnamediv>
|
||
|
<refname>openal_stream</refname>
|
||
|
<refpurpose>
|
||
|
Begin streaming on a source
|
||
|
</refpurpose>
|
||
|
</refnamediv>
|
||
|
<refsect1>
|
||
|
<title>Description</title>
|
||
|
<methodsynopsis>
|
||
|
<type>resource</type><methodname>openal_stream</methodname>
|
||
|
<methodparam><type>resource</type><parameter>source</parameter></methodparam>
|
||
|
<methodparam><type>int</type><parameter>format</parameter></methodparam>
|
||
|
<methodparam><type>int</type><parameter>rate</parameter></methodparam>
|
||
|
</methodsynopsis>
|
||
|
</refsect1>
|
||
|
<refsect1>
|
||
|
&reftitle.parameters;
|
||
|
<variablelist>
|
||
|
<varlistentry>
|
||
|
<term><parameter>source</parameter></term>
|
||
|
<listitem>
|
||
|
<simpara>
|
||
|
An <link linkend="openal.resources">Open AL(Source)</link> resource
|
||
|
(previously created by <function>openal_source_create</function>).
|
||
|
</simpara>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
<varlistentry>
|
||
|
<term><parameter>format</parameter></term>
|
||
|
<listitem>
|
||
|
<simpara>
|
||
|
Format of <parameter>data</parameter>, one of:
|
||
|
<constant>AL_FORMAT_MONO8</constant>,
|
||
|
<constant>AL_FORMAT_MONO16</constant>,
|
||
|
<constant>AL_FORMAT_STEREO8</constant>&listendand;
|
||
|
<constant>AL_FORMAT_STEREO16</constant>
|
||
|
</simpara>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
<varlistentry>
|
||
|
<term><parameter>rate</parameter></term>
|
||
|
<listitem>
|
||
|
<simpara>
|
||
|
Frequency of data to stream given in Hz.
|
||
|
</simpara>
|
||
|
</listitem>
|
||
|
</varlistentry>
|
||
|
</variablelist>
|
||
|
</refsect1>
|
||
|
<refsect1>
|
||
|
&reftitle.returnvalues;
|
||
|
<simpara>
|
||
|
Returns a stream resource on success, or &false; on failure.
|
||
|
</simpara>
|
||
|
</refsect1>
|
||
|
<refsect1>
|
||
|
&reftitle.seealso;
|
||
|
<simpara>
|
||
|
<function>openal_source_create</function>&listendand;
|
||
|
<function>fwrite</function>
|
||
|
</simpara>
|
||
|
</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:"../../../../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
|
||
|
-->
|