<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/wrappers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'wrappers.audio.php',
    1 => 'ogg://',
    2 => 'オーディオストリーム',
  ),
  'up' => 
  array (
    0 => 'wrappers.php',
    1 => 'サポートするプロトコル/ラッパー',
  ),
  'prev' => 
  array (
    0 => 'wrappers.rar.php',
    1 => 'rar://',
  ),
  'next' => 
  array (
    0 => 'wrappers.expect.php',
    1 => 'expect://',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'language/wrappers/audio.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="wrappers.audio" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ogg://</h1>
  <p class="refpurpose"><span class="refname">ogg://</span> &mdash; <span class="dc-title">オーディオストリーム</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-wrappers.audio-description">
  <h3 class="title">説明</h3>
  <p class="para">
   <var class="filename">ogg://</var> ラッパー経由で読み込みモードでオープンされた
   ファイルは、<code class="literal">OGG/Vorbis</code> コーデックでエンコードされた圧縮音声ファイルとして
   扱われます。同様に、<var class="filename">ogg://</var> ラッパー経由で書き込みモード
   あるいは追記モードでオープンされたファイルは、圧縮音声データとして
   書き込まれます。読み込みモードでオープンした <code class="literal">OGG/Vorbis</code> ファイルに対して
   <span class="function"><a href="function.stream-get-meta-data.php" class="function">stream_get_meta_data()</a></span> を適用した場合、以下のような
   さまざまな情報を返します。
   <code class="parameter">vendor</code> タグ、<code class="parameter">comments</code>、
   多くの <code class="parameter">channels</code>、サンプリングレート
   <code class="parameter">rate</code> 、
   および以下のパラメータで指定されるエンコーディングレート。
   <code class="parameter">bitrate_lower</code>、<code class="parameter">bitrate_upper</code>、
   <code class="parameter">bitrate_nominal</code>、<code class="parameter">bitrate_window</code>
  </p>

  <p class="simpara"><var class="filename">ogg://</var> (PECL) </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <strong>このラッパーはデフォルトでは有効になっていません</strong><br />
   <span class="simpara">
    <var class="filename">ogg://</var> ラッパーを使用するには、
    <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a> から
    <a href="https://pecl.php.net/package/oggvorbis" class="link external">&raquo;&nbsp;OGG/Vorbis</a> 拡張モジュールを
    インストールする必要があります。
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 usage" id="refsect1-wrappers.audio-usage"> 
  <h3 class="title">利用法</h3>
  <ul class="itemizedlist">
   <li class="listitem"><span class="simpara"><var class="filename">ogg://soundfile.ogg</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">ogg:///path/to/soundfile.ogg</var></span></li>
   <li class="listitem"><span class="simpara"><var class="filename">ogg://http://www.example.com/path/to/soundstream.ogg</var></span></li>
  </ul>
 </div>
 

 <div class="refsect1 options" id="refsect1-wrappers.audio-options">
  <h3 class="title">オプション</h3>
  <p class="para">
   <table class="doctable table">
    <caption><strong>ラッパーの概要</strong></caption>
    
     <thead>
      <tr>
       <th>属性</th>
       <th>サポートの有無</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><a href="filesystem.configuration.php#ini.allow-url-fopen" class="link">allow_url_fopen</a> で制約される</td>
       <td>No</td>
      </tr>

      <tr>
       <td>読み込み許可</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>書き込み許可</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>追加許可</td>
       <td>Yes</td>
      </tr>

      <tr>
       <td>同時読み書き許可</td>
       <td>No</td>
      </tr>

      <tr>
       <td><span class="function"><a href="function.stat.php" class="function">stat()</a></span> のサポート</td>
       <td>No</td>
      </tr>

      <tr>
       <td><span class="function"><a href="function.unlink.php" class="function">unlink()</a></span> のサポート</td>
       <td>No</td>
      </tr>

      <tr>
       <td><span class="function"><a href="function.rename.php" class="function">rename()</a></span> のサポート</td>
       <td>No</td>
      </tr>

      <tr>
       <td><span class="function"><a href="function.mkdir.php" class="function">mkdir()</a></span> のサポート</td>
       <td>No</td>
      </tr>

      <tr>
       <td><span class="function"><a href="function.rmdir.php" class="function">rmdir()</a></span> のサポート</td>
       <td>No</td>
      </tr>

     </tbody>
    
   </table>

  </p>
  
  <p class="para">
   <table class="doctable table">
    <caption><strong>コンテキストオプション</strong></caption>
    
     <thead>
      <tr>
       <th>名前</th>
       <th>使用法</th>
       <th>デフォルト</th>
       <th>モード</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td><code class="literal">pcm_mode</code></td>
       <td>
        読み込みの際に適用する PCM エンコーディング。以下のうちのひとつ。
        <strong><code>OGGVORBIS_PCM_U8</code></strong>、<strong><code>OGGVORBIS_PCM_S8</code></strong>、
        <strong><code>OGGVORBIS_PCM_U16_BE</code></strong>、<strong><code>OGGVORBIS_PCM_S16_BE</code></strong>、
        <strong><code>OGGVORBIS_PCM_U16_LE</code></strong>、および <strong><code>OGGVORBIS_PCM_S16_LE</code></strong>
        （8 ビットか 16 ビットか、符号付きか符号なしか、ビッグエンディアンかリトルエンディアンか）。
       </td>
       <td>OGGVORBIS_PCM_S16_LE</td>
       <td>Read</td>
      </tr>

      <tr>
       <td><code class="literal">rate</code></td>
       <td>
        入力データのサンプリングレート。Hz 単位。
       </td>
       <td>44100</td>
       <td>Write/Append</td>
      </tr>

      <tr>
       <td><code class="literal">bitrate</code></td>
       <td>
        整数値の場合、エンコードの際の固定ビットレート（16000 から 131072）。
        浮動小数点値の場合、使用する可変ビットレート（-1.0 から 1.0）。
       </td>
       <td>128000</td>
       <td>Write/Append</td>
      </tr>

      <tr>
       <td><code class="literal">channels</code></td>
       <td>
        エンコードする音声チャネル数。一般には 1（モノラル）あるいは 2（ステレオ）。
        最大 16 まで。
       </td>
       <td>2</td>
       <td>Write/Append</td>
      </tr>

      <tr>
       <td><code class="literal">comments</code></td>
       <td>
        エンコード時にトラックヘッダに入れる文字列の配列。
       </td>
       <td class="empty">&nbsp;</td>
       <td>Write/Append</td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>
 

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