<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.openal.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.openal-source-set.php',
    1 => 'openal_source_set',
    2 => 'Set source property',
  ),
  'up' => 
  array (
    0 => 'ref.openal.php',
    1 => 'OpenAL Functions',
  ),
  'prev' => 
  array (
    0 => 'function.openal-source-rewind.php',
    1 => 'openal_source_rewind',
  ),
  'next' => 
  array (
    0 => 'function.openal-source-stop.php',
    1 => 'openal_source_stop',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/openal/functions/openal-source-set.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openal-source-set" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openal_source_set</h1>
  <p class="verinfo">(PECL openal &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">openal_source_set</span> &mdash; <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="methodname"><strong>openal_source_set</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$source</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$property</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$setting</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.openal-source-set-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">source</code></dt>
    <dd>
     <span class="simpara">
      An <a href="openal.resources.php" class="link">Open AL(Source)</a> resource
      (previously created by <span class="function"><a href="function.openal-source-create.php" class="function">openal_source_create()</a></span>).
     </span>
    </dd>
   
   
    <dt><code class="parameter">property</code></dt>
    <dd>
     <span class="simpara">
      Property to set, one of:
      <strong><code><a href="openal.constants.php#constant.al-buffer">AL_BUFFER</a></code></strong> (OpenAL(Source)),
      <strong><code><a href="openal.constants.php#constant.al-looping">AL_LOOPING</a></code></strong> (bool),
      <strong><code><a href="openal.constants.php#constant.al-source-relative">AL_SOURCE_RELATIVE</a></code></strong> (int),
      <strong><code><a href="openal.constants.php#constant.al-source-state">AL_SOURCE_STATE</a></code></strong> (int),
      <strong><code><a href="openal.constants.php#constant.al-pitch">AL_PITCH</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-gain">AL_GAIN</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-min-gain">AL_MIN_GAIN</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-max-gain">AL_MAX_GAIN</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-max-distance">AL_MAX_DISTANCE</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-rolloff-factor">AL_ROLLOFF_FACTOR</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-cone-outer-gain">AL_CONE_OUTER_GAIN</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-cone-inner-angle">AL_CONE_INNER_ANGLE</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-cone-outer-angle">AL_CONE_OUTER_ANGLE</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-reference-distance">AL_REFERENCE_DISTANCE</a></code></strong> (float),
      <strong><code><a href="openal.constants.php#constant.al-position">AL_POSITION</a></code></strong> (array(float,float,float)),
      <strong><code><a href="openal.constants.php#constant.al-velocity">AL_VELOCITY</a></code></strong> (array(float,float,float)),
      <strong><code><a href="openal.constants.php#constant.al-direction">AL_DIRECTION</a></code></strong> (array(float,float,float)).
     </span>
    </dd>
   
   
    <dt><code class="parameter">setting</code></dt>
    <dd>
     <span class="simpara">
      Value to assign to specified <code class="parameter">property</code>.
      Refer to the description of <code class="parameter">property</code>
      for a description of the value(s) expected.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.openal-source-set-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.openal-source-set-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.openal-source-create.php" class="function" rel="rdfs-seeAlso">openal_source_create()</a> - Generate a source resource</span></li>
   <li><span class="function"><a href="function.openal-source-get.php" class="function" rel="rdfs-seeAlso">openal_source_get()</a> - Retrieve an OpenAL source property</span></li>
   <li><span class="function"><a href="function.openal-source-play.php" class="function" rel="rdfs-seeAlso">openal_source_play()</a> - Start playing the source</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>