<!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>Set 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-rewind.html">openal_source_rewind</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openal-source-stop.html">openal_source_stop</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-set" class="refentry"> <div class="refnamediv"> <h1 class="refname">openal_source_set</h1> <p class="verinfo">(PECL openal >= 0.1.0)</p><p class="refpurpose"><span class="refname">openal_source_set</span> — <span class="dc-title"> Set source property </span></p> </div> <div class="refsect1 description" id="refsect1-function.openal-source-set-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><strong>openal_source_set</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> , <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$setting</code></span> )</div> </div> <div class="refsect1 parameters" id="refsect1-function.openal-source-set-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 set, one of: <strong><code>AL_BUFFER</code></strong> (OpenAL(Source)), <strong><code>AL_LOOPING</code></strong> (bool), <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> <dt> <span class="term"><em><code class="parameter">setting</code></em></span> <dd> <p class="para"> Value to assign to specified <em><code class="parameter">property</code></em>. Refer to the description of <em><code class="parameter">property</code></em> for a description of the value(s) expected. </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.openal-source-set-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 seealso" id="refsect1-function.openal-source-set-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-get.html" class="function" rel="rdfs-seeAlso">openal_source_get()</a> - Retrieve an OpenAL 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-rewind.html">openal_source_rewind</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.openal-source-stop.html">openal_source_stop</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>