mirror of
https://github.com/php/doc-pt_br.git
synced 2026-03-23 22:52:12 +01:00
194 lines
6.2 KiB
XML
194 lines
6.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: f94d903985119d3ac00f4528551df947f57b667f Maintainer: leonardolara Status: ready --><!-- CREDITS: adaiasmagdiel -->
|
|
|
|
<refentry xml:id="wrappers.audio" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="verify_info:false" role="stream_wrapper">
|
|
<refnamediv>
|
|
<refname>ogg://</refname>
|
|
<refpurpose>Fluxos de áudio</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"><!-- {{{ -->
|
|
&reftitle.description;
|
|
<para>
|
|
Os arquivos abertos para leitura por meio do empacotador <filename>ogg://</filename>
|
|
são tratados como áudio compactado codificado usando o codec <literal>OGG/Vorbis</literal>.
|
|
Da mesma forma, os arquivos abertos para gravação ou adição por meio do
|
|
empacotador <filename>ogg://</filename> são gravados como dados de áudio compactados.
|
|
<function>stream_get_meta_data</function>, quando usado em um arquivo <literal>OGG/Vorbis</literal>
|
|
aberto para leitura, retornará vários detalhes sobre o fluxo,
|
|
incluído a etiqueta <parameter>vendor</parameter>, quaisquer
|
|
comentários incluídos em <parameter>comments</parameter>, o número de
|
|
canais em <parameter>channels</parameter>, a taxa no parâmetro <parameter>rate</parameter>,
|
|
e o intervalo da taxa de codificação descrito por:
|
|
<parameter>bitrate_lower</parameter>, <parameter>bitrate_upper</parameter>,
|
|
<parameter>bitrate_nominal</parameter>, e <parameter>bitrate_window</parameter>.
|
|
</para>
|
|
|
|
<simpara><filename>ogg://</filename> (PECL)</simpara>
|
|
<note>
|
|
<title>Este empacotador não é habilitado por padrão</title>
|
|
<simpara>
|
|
Para poder utilizar o empacotador <filename>ogg://</filename>,
|
|
a extensão
|
|
<link xlink:href="&url.pecl.package;oggvorbis">OGG/Vorbis</link>
|
|
disponível em &link.pecl; precisa estar instalada.
|
|
</simpara>
|
|
</note>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="usage"> <!-- {{{ -->
|
|
&reftitle.usage;
|
|
<itemizedlist>
|
|
<listitem><simpara><filename>ogg://soundfile.ogg</filename></simpara></listitem>
|
|
<listitem><simpara><filename>ogg:///path/to/soundfile.ogg</filename></simpara></listitem>
|
|
<listitem><simpara><filename>ogg://http://www.example.com/path/to/soundstream.ogg</filename></simpara></listitem>
|
|
</itemizedlist>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
<refsect1 role="options"><!-- {{{ -->
|
|
&reftitle.options;
|
|
<para>
|
|
<table>
|
|
<title>Resumo do Empacotador</title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>Atributo</entry>
|
|
<entry>Suportado</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>Restringido por <link linkend="ini.allow-url-fopen">allow_url_fopen</link></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite leitura</entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite escrita</entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite adição</entry>
|
|
<entry>Sim</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Permite leitura e ecrita simultâneas</entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>stat</function></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>unlink</function></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>rename</function></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>mkdir</function></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
<row>
|
|
<entry>Suporta <function>rmdir</function></entry>
|
|
<entry>Não</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
<!-- FIXME: This should not be here! context.audio... -->
|
|
<para>
|
|
<table>
|
|
<title>Opções de contexto</title>
|
|
<tgroup cols="3">
|
|
<thead>
|
|
<row>
|
|
<entry>Nome</entry>
|
|
<entry>Uso</entry>
|
|
<entry>Padrão</entry>
|
|
<entry>Modo</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry><literal>pcm_mode</literal></entry>
|
|
<entry>
|
|
Codificação PCM a ser aplicada durante a leitura, uma das seguintes constantes:
|
|
<constant>OGGVORBIS_PCM_U8</constant>, <constant>OGGVORBIS_PCM_S8</constant>,
|
|
<constant>OGGVORBIS_PCM_U16_BE</constant>, <constant>OGGVORBIS_PCM_S16_BE</constant>,
|
|
<constant>OGGVORBIS_PCM_U16_LE</constant> e <constant>OGGVORBIS_PCM_S16_LE</constant>.
|
|
(8 bits versus 16 bits, com sinal ou sem sinal, big ou little <literal>endian</literal>)
|
|
</entry>
|
|
<entry>OGGVORBIS_PCM_S16_LE</entry>
|
|
<entry>Leitura</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>rate</literal></entry>
|
|
<entry>
|
|
Taxa de amostragem de dados de entrada, expressa em Hz
|
|
</entry>
|
|
<entry>44100</entry>
|
|
<entry>Escrita/Adição</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>bitrate</literal></entry>
|
|
<entry>
|
|
Quando fornecido como um número inteiro, refere-se à taxa de bits fixa para codificação. (16000 to 131072)
|
|
Quando fornecido como um float, refere-se à qualidade da taxa de bits variável a ser utilizada. (-1.0 to 1.0)
|
|
</entry>
|
|
<entry>128000</entry>
|
|
<entry>Escrita/Adição</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>channels</literal></entry>
|
|
<entry>
|
|
O número de canais de áudio a serem codificados, geralmente 1 (mono) ou 2 (estéreo).
|
|
Pode variar até 16.
|
|
</entry>
|
|
<entry>2</entry>
|
|
<entry>Escrita/Adição</entry>
|
|
</row>
|
|
<row>
|
|
<entry><literal>comments</literal></entry>
|
|
<entry>
|
|
Um array de strings para codificar no cabeçalho da faixa.
|
|
</entry>
|
|
<entry/>
|
|
<entry>Escrita/Adição</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
</para>
|
|
</refsect1> <!-- }}} -->
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|
|
|