[doc] misc. fix & improvements
[scilab.git] / scilab / modules / sound / help / ja_JP / playsnd.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3     * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4     * Copyright (C) ????-2006 - INRIA - Scilab
5     *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14     *
15     -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19           xml:lang="ja" xml:id="playsnd">
20     <refnamediv>
21         <refname>playsnd</refname>
22         <refpurpose>サウンドプレイヤー機能</refpurpose>
23     </refnamediv>
24     <refsynopsisdiv>
25         <title>呼び出し手順</title>
26         <synopsis>
27           playsnd(y)
28           playsnd(y, rate, bits)
29           playsnd(y, rate, bits, command)
30         </synopsis>
31     </refsynopsisdiv>
32     <refsection>
33         <title>引数</title>
34         <variablelist>
35             <varlistentry>
36                 <term>y</term>
37                 <listitem>
38                     <para>行列. 各行は1チャネルを記述</para>
39                 </listitem>
40             </varlistentry>
41             <varlistentry>
42                 <term>rate</term>
43                 <listitem>
44                     <para>実数, サンプリング周波数 (デフォルト値は22050).</para>
45                 </listitem>
46             </varlistentry>
47             <varlistentry>
48                 <term>bits</term>
49                 <listitem>
50                     <para>実数, ビット長 (通常 8 または 16). 未使用.</para>
51                 </listitem>
52             </varlistentry>
53             <varlistentry>
54                 <term>command</term>
55                 <listitem>
56                     <para>
57                         Unixシステムのみで使用され,
58                         サウンド(wav)ファイルを演奏する際に使用されるコマンド名を指定します.
59                         デフォルト値は<literal>play</literal>です.
60                         <literal>/dev/audio</literal>が指定された場合,
61                         8ビットmu-law rawサウンドが生成され,
62                         <literal>/dev/audio</literal>に送信されます.
63                     </para>
64                 </listitem>
65             </varlistentry>
66         </variablelist>
67     </refsection>
68     <refsection>
69         <title>説明</title>
70         <para>
71             Scilab行列で指定されたマルチチャネル信号を演奏します.
72             ただし, サウンドのサンプリングレートは<literal>rate</literal>です.
73         </para>
74     </refsection>
75     <refsection>
76         <title>例</title>
77         <programlisting role="example"><![CDATA[
78 // A two channel signal
79 y = loadwave("SCI/modules/sound/demos/chimes.wav");
80 playsnd(y)
81  ]]></programlisting>
82     </refsection>
83     <refsection role="see also">
84         <title>参照</title>
85         <simplelist type="inline">
86             <member>
87                 <link linkend="lin2mu">lin2mu</link>
88             </member>
89             <member>
90                 <link linkend="wavread">wavread</link>
91             </member>
92         </simplelist>
93     </refsection>
94 </refentry>