<?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 => 'ru',
  ),
  'this' => 
  array (
    0 => 'function.openal-source-set.php',
    1 => 'openal_source_set',
    2 => 'Установить свойство источника',
  ),
  'up' => 
  array (
    0 => 'ref.openal.php',
    1 => 'Функции OpenAL',
  ),
  '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' => 'ru',
    '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">
   Установить свойство источника
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.openal-source-set-description">
  <h3 class="title">Описание</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">Список параметров</h3>
  <dl>
   
    <dt><code class="parameter">source</code></dt>
    <dd>
     <span class="simpara">
      Ресурс <a href="openal.resources.php" class="link">Open AL(Source)</a>
      (созданный ранее с помощью <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">
      Устанавливаемое свойство, представляющее одну из констант:
      <strong><code><a href="openal.constants.php#constant.al-buffer">AL_BUFFER</a></code></strong> (OpenAL (источник)),
      <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">
      Значение для присвоения указанному свойству <code class="parameter">property</code>.
      Обратитесь к описанию параметра <code class="parameter">property</code>
      для описания ожидаемых параметров.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.openal-source-set-returnvalues">
  <h3 class="title">Возвращаемые значения</h3>
  <p class="simpara">
   Функция возвращает <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, если выполнилась успешно, или <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>, если возникла ошибка.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.openal-source-set-seealso">
  <h3 class="title">Смотрите также</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.openal-source-create.php" class="function" rel="rdfs-seeAlso">openal_source_create()</a> - Сгенерировать источник ресурса</span></li>
   <li><span class="function"><a href="function.openal-source-get.php" class="function" rel="rdfs-seeAlso">openal_source_get()</a> - Получить свойство источника OpenAL</span></li>
   <li><span class="function"><a href="function.openal-source-play.php" class="function" rel="rdfs-seeAlso">openal_source_play()</a> - Начать воспроизведение источника</span></li>
  </ul>
 </div>

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