1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) ????-2006 - INRIA - Scilab
6 * Copyright (C) 2012 - 2016 - Scilab Enterprises
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.
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">
21 <refname>playsnd</refname>
22 <refpurpose>サウンドプレイヤー機能</refpurpose>
28 playsnd(y, rate, bits)
29 playsnd(y, rate, bits, command)
38 <para>行列. 各行は1チャネルを記述</para>
44 <para>実数, サンプリング周波数 (デフォルト値は22050).</para>
50 <para>実数, ビット長 (通常 8 または 16). 未使用.</para>
58 サウンド(wav)ファイルを演奏する際に使用されるコマンド名を指定します.
59 デフォルト値は<literal>play</literal>です.
60 <literal>/dev/audio</literal>が指定された場合,
61 8ビットmu-law rawサウンドが生成され,
62 <literal>/dev/audio</literal>に送信されます.
71 Scilab行列で指定されたマルチチャネル信号を演奏します.
72 ただし, サウンドのサンプリングレートは<literal>rate</literal>です.
77 <programlisting role="example"><![CDATA[
78 // A two channel signal
79 y = loadwave("SCI/modules/sound/demos/chimes.wav");
83 <refsection role="see also">
85 <simplelist type="inline">
87 <link linkend="lin2mu">lin2mu</link>
90 <link linkend="wavread">wavread</link>