<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Retrieve an OpenAL source property</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openal-source-destroy.html">openal_source_destroy</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openal-source-pause.html">openal_source_pause</a></div> <div class="up"><a href="ref.openal.html">OpenAL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.openal-source-get" class="refentry"> <div class="refnamediv"> <h1 class="refname">openal_source_get</h1> <p class="verinfo">(PECL openal >= 0.1.0)</p><p class="refpurpose"><span class="refname">openal_source_get</span> — <span class="dc-title"> Retrieve an OpenAL source property </span></p> </div> <div class="refsect1 description" id="refsect1-function.openal-source-get-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>openal_source_get</strong></span> ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$source</code></span> , <span class="methodparam"><span class="type">int</span> <code class="parameter">$property</code></span> )</div> </div> <div class="refsect1 parameters" id="refsect1-function.openal-source-get-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">source</code></em></span> <dd> <p class="para"> An <a href="openal.resources.html" class="link">Open AL(Source)</a> resource (previously created by <span class="function"><a href="function.openal-source-create.html" class="function">openal_source_create()</a></span>). </p> </dd> </dt> <dt> <span class="term"><em><code class="parameter">property</code></em></span> <dd> <p class="para"> Property to get, one of: <strong><code>AL_SOURCE_RELATIVE</code></strong> (int), <strong><code>AL_SOURCE_STATE</code></strong> (int), <strong><code>AL_PITCH</code></strong> (float), <strong><code>AL_GAIN</code></strong> (float), <strong><code>AL_MIN_GAIN</code></strong> (float), <strong><code>AL_MAX_GAIN</code></strong> (float), <strong><code>AL_MAX_DISTANCE</code></strong> (float), <strong><code>AL_ROLLOFF_FACTOR</code></strong> (float), <strong><code>AL_CONE_OUTER_GAIN</code></strong> (float), <strong><code>AL_CONE_INNER_ANGLE</code></strong> (float), <strong><code>AL_CONE_OUTER_ANGLE</code></strong> (float), <strong><code>AL_REFERENCE_DISTANCE</code></strong> (float), <strong><code>AL_POSITION</code></strong> (array(float,float,float)), <strong><code>AL_VELOCITY</code></strong> (array(float,float,float)), <strong><code>AL_DIRECTION</code></strong> (array(float,float,float)). </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.openal-source-get-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the type associated with the property being retrieved or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.openal-source-get-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.openal-source-create.html" class="function" rel="rdfs-seeAlso">openal_source_create()</a> - Generate a source resource</span></li> <li class="member"> <span class="function"><a href="function.openal-source-set.html" class="function" rel="rdfs-seeAlso">openal_source_set()</a> - Set source property</span></li> <li class="member"> <span class="function"><a href="function.openal-source-play.html" class="function" rel="rdfs-seeAlso">openal_source_play()</a> - Start playing the source</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.openal-source-destroy.html">openal_source_destroy</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openal-source-pause.html">openal_source_pause</a></div> <div class="up"><a href="ref.openal.html">OpenAL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>