php-doc-en/reference/openal/functions/openal-source-get.xml
2011-08-16 11:38:58 +00:00

93 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.openal-source-get" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>openal_source_get</refname>
<refpurpose>
Retrieve an OpenAL source property
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>mixed</type><methodname>openal_source_get</methodname>
<methodparam><type>resource</type><parameter>source</parameter></methodparam>
<methodparam><type>int</type><parameter>property</parameter></methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>source</parameter></term>
<listitem>
<para>
An <link linkend="openal.resources">Open AL(Source)</link> resource
(previously created by <function>openal_source_create</function>).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>property</parameter></term>
<listitem>
<para>
Property to get, one of:
<constant>AL_SOURCE_RELATIVE</constant> (int),
<constant>AL_SOURCE_STATE</constant> (int),
<constant>AL_PITCH</constant> (float),
<constant>AL_GAIN</constant> (float),
<constant>AL_MIN_GAIN</constant> (float),
<constant>AL_MAX_GAIN</constant> (float),
<constant>AL_MAX_DISTANCE</constant> (float),
<constant>AL_ROLLOFF_FACTOR</constant> (float),
<constant>AL_CONE_OUTER_GAIN</constant> (float),
<constant>AL_CONE_INNER_ANGLE</constant> (float),
<constant>AL_CONE_OUTER_ANGLE</constant> (float),
<constant>AL_REFERENCE_DISTANCE</constant> (float),
<constant>AL_POSITION</constant> (array(float,float,float)),
<constant>AL_VELOCITY</constant> (array(float,float,float)),
<constant>AL_DIRECTION</constant> (array(float,float,float)).
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the type associated with the property being retrieved
&return.falseforfailure;.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>openal_source_create</function></member>
<member><function>openal_source_set</function></member>
<member><function>openal_source_play</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
-->